In order to protect the right bank of the Danube Ottoman sultan Bayezid II (1480-1512) revised and strengthened the existing fortress for fighting firearms. Built in 1483, Ram Fortress is one of the oldest artillery forts in Serbia and Bayezid II built it after he finished the near Smederevo. It was also built in order to enhance the protection from the Hungarian excursions from the north, provided by the existing Smederevo and Golubac fortresses. The fortress lost its strategic importance in 1521 when the Ottomans defeated Hungarians and spread their territory across the Danube, thus leaving Ram Fortress in the hinterland of the Ottoman Empire.