In 1505 CE, the King of the Shah Mir Dynasty converted to Shi'ism and so did the Chak clan of Kashmir. Mir Shams-ud Din Iraqi traveled in the valleys of Himalayas and spread Shi'ism from Skardu to Tibet, converting thousands of Hindus and Buddhists to Shi'ism.[4] In 1586 CE, Kashmir was merged with the Mughal Empire. Mughals appointed talented officers and contributed greatly to the cultural and economic life of Kashmir.[5] In 1753 CE Kashmir was conquered by Ahmad Shah Abdali,[6] whose descendants ruled over Kashmir until they lost it to Sikhs in 1819 CE.[7] The Kashmir valley came under the Dogra rule with the treaty of Amritsar signed between the British and Maharajah Gulab Singh of Jammu in 1846.[8]