The Residence of Princess Ljubica is one of a few buildings which had survived from the first reign of Prince Miloš Obrenović. It was built between 1829 and 1831, in accordance with the plan designed by Hadži Nikola Živković’s and under his supervision. Hadži Nikola Živković was the Prince’s official architect. The Residence’s function had been intended as a luxurious court of the Serbian ruling dynasty, i.e. the Obrenović dynasty. However, as it was located in the immediate vicinity of the Ottoman Turks, Prince Miloš stayed there only occasionally. The Residence’s function had served its original purpose during the first reign of Prince Mihailo (1839–42), when it was used as the Prince's residence.