After the Ottoman conquest, the basement of the edifice, which in the meantime had fallen to ruin,[REF] was used as naval dockyard.
The building escaped the great fire which ravaged the quarter in 1782, and was restored again by Sultan Mahmud II (1808-1839), who added the wooden Sultan's lodge [REF].