,
Transoxiana and
Tokharistan He was the son of
Böritigin, a Karakhanid ruler from the western branch of the family, known as the "Alids", which was named after their ancestor
Ali Arslan Khan. Shams al-Mulk is known for building in the Zerafshan valley. Shams al-Mulk built the palace and gardens of Shamsabad in
Bukhara where the Karakhanids later lived. The palace was located southwest of the
Magok-i-Attari Mosque, outside Bukhara. Shams al-Mulk was the first ruler of the city to build a royal residence outside the rabad of the city, on the site of the current Namazgah. One of the most important Karakhanid structures, most of which have survived to the beginning of the 20th century, is
Rabati Malik, a
caravanserai ruin located in
Navoiy, 110 km northeast of Bukhara on the road to
Samarkand. The complex was greatly expanded in 1078–1079 by Shams al-Mulk. During the reign of Shams al-Mulk
Omar Khayyam was invited to Samarkand. Shams al-Mulk died in 1080 and was succeeded by his brother Khizr Khan. == References ==