Mu’izz ad-Din Muhammad ibn Sam (Persian: معز الدین محمد بن سام), also Mu’izz ad-Din Muhammad Ghori, also Ghūri (Persian: معز الدین محمد غوری) (1144 – March 15, 1206), commonly known as Muhammad of Ghor, also Ghūr, or Muhammad Ghori, also Ghūri, was a ruler from the Ghurid dynasty based in what is today Afghanistan who ruled from 1173 CE to 1206 CE. He extended the Ghurid dominions eastwards and laid the foundation of Islamic rule in the Indian Subcontinent, which lasted after him for nearly half a millennium. During his joint reign with his brother Ghiyasuddin Ghori (r. c. 1163–1203), the Ghurids reached the apogee of their territorial expansion.