Ribat Malik was a caravanserai on the Silk Road between Samarkand and Bukhara, in what is now Uzbekistan. The Karakhanid ruler Shams al-Mulk Nasr, who ruled in Samarkand from 1068 to 1080, commissioned the building. Rows of brick half-columns linked by arches flanked its entrance portal.