The town was held by Amar Singh Jat during the 17th century. Amar Singh revolted against the Mughal Empire and declared his independent. He also built the fortress of Rait and became the leader of the rebels of Tappal, Khurja, Koel, Chandausi and Atrauli parganas.