The palace, known as the 'Pearl of Kokand', was built by Khudayar Khan in 1871. He was the last ruler of the Kokand Khanate, before it was conquered by Russia. Currently, only two courtyards and 19 rooms (of the original 7 courtyards and 119 rooms) remain. What survives functions as a museum of Kokand's history.