After the reign of Sultan Haji in the late 17th century, Banten has lost most of its power to the Dutch in Batavia. True that the sultanate still survives well throughout the 18th century with the reign of successive line of sultans of Banten, but it was only a shadow of its former glory of a cosmopolitan port city. By that time Banten was overshadowed by the neighboring port city of Batavia, and was treated as a client state or protectorate of VOC.