Bhoja II (910–912) was the successor of Mahendrapala I . He was overthrown by Mahipala I (912–944). Many kingdoms emerged independent using the weakness of Pratiharas. The south Indian Emperor Indra III (c. 914–928) of the Rashtrakuta dynasty for a short time captured Kannauj in 916. Later again Pratihara ruler gained control over Kannauj. But the dynasty was still weakening due to the attacks of the Turks, Rashtrakutas and several other dynasties. Mahmud of Ghazni captured Kannauj in 1018, and the Pratihara ruler Rajapala fled (escaped). Somehow Rajapala was captured and killed by a Chandela Ruler named Vidhyadhara.The Chandela ruler then placed Rajapala's son Trilochanpala on the throne. Jasapala, the last Gurjara-Pratihara ruler died in 1036.