As the Mughal state weakened after 1700, the Marathas held sway over Malwa under dispatchment of Baji Rao I under leadership of Chimnaji Appa, Nemaji Shinde and Chimnaji Damodar were the first Maratha generals to cross the boundary of Maharashtra and to invade in Malwa in 1698. Subsequently, Malharrao Holkar (1694–1766) became leader of Maratha armies in Malwa in 1724, and in 1733 the Maratha Peshwa granted him control of most of the region, which was formally ceded by the Mughals in 1738. Ranoji Scindia, noted Maratha commander, established his headquarters at Ujjain in 1721. This capital was later moved to Gwalior State by Daulatrao Scindia. Another Maratha general, Anand Rao Pawar, established himself as the Raja of Dhar in 1742, and the two Pawar brothers became Rajas of Dewas State.