Topkapi palace is today a museum.
During its glory days, it was the palace residence of the Sultans, the heads of the Ottoman Empire.
The huge palace complex rooms and halls had the Sultans' residence, their large haram (including eunuchs), and the public council building.