After the Ottoman conquest of the city , Rumelihisarı served as a customs checkpoint and occasional prison , notably for the embassies of states that were at war with the Empire . After suffering extensive damage in the Great Earthquake of 1509 , the structure was repaired , and was used continuously until the late 19th century
Great Earthquake of 1509
1509 Constantinople earthquake
Rumelihisarı