Built by Mehmet the Conqueror between 1462 and 1470, the complex was almost completely destroyed by an earthquake in 1766.
Luckily, the earthquake that shook the city in 1766 left this complex undamaged.