It is believed that in the course of time, Dhaka was first included in Samatat, then Bengal and Gaur etc. kingdoms. By the end of the 13th century AD, the Muslims occupied Dhaka. Dhaka was declared the capital of Subah Bengal on 16 July 1610 AD according to the decree of Mughal Emperor Jahangir.