 During 1257 AD, Gujarat was under the Khilji dynasty.Jafar Khan of the Tughlak dynasty had overpowered King Ram Ray Rathod of Idar.The Mughals took control of a majority of the Gujarat during this period.