It's a drawbridge! Once upon a time there was water under it that was used to supply the city, but that was long ago. The gate you see is part of the Kalemegdan Fortress, and is known as the Zindan Gate, built in the mid-15th century.
This post is for Louis La Vache's Sunday Bridge Meme.