History of the Doge's Palace in Venice
The history of the Doge's palace in Venice begins in medieval times and continues with numerous extensions, renovations and demolitions aimed at adapting the building to the new needs of the city and in particular to the need to give a seat to the governing bodies that, increasing in number, began to complement the doge in the administration, depriving him of certain powers and decreasing the space at his disposal. In 810, after Venice had become capital of the Serenissima, taking the place of Eraclea and Metamaucum, the seat of the doge was built there, probably in the form of a fortified and turreted palace, soon flanked by a basilica.
Source: Wikipedia — History of the Doge's Palace in Venice (CC BY-SA 4.0)