 Final remains of the castle were removed during construction of new port installations (1867–1876).The market itself came into existence with the filling between 1650–1670 of the shallowest parts of the inner bay.The process of gaining ground from the bay was pursued in 1744 with the construction of Kızlarağası Han, an impressive caravanserai (and surviving to the present) that emerged as the nucleus of the market, together with two older "hans", the term implying a caravanserai with more markedly urban characteristics, that have not survived to this day.