Muslim rule in India lasted from 712 to 1857 CE and was divided into two periods - an early inconsistent period from 712-1206 CE, followed by a consistent period from 1206-1857 CE. The consistent period was further divided into the Sultanate period (1206-1526 CE), consisting of the Slave, Khilji, Tughlaq, Sayyid and Lodhi dynasties, and the Mughal period (1526-1857 CE) under the Mughal dynasty until the British established control in India.