This palace was the Ottoman center of administration, and also the home of many of the Sultans (the rulers of the Ottoman Empire). It was not a single building but a number of buildings with courtyards, gardens, etc. The first buildings were constructed in the late 1400s, and cost a bundle.