quality:correction, structural:reformatting, linguistic:voice_change, quality:corruption, stylistic:style_transfer
Sikh Empire

In the Punjab, Mughal power waned in the seventeenth and eighteenth centuries. Successive bands of Sikhs attacked Lahore, and by 1780 partitioned it among themselves. Ranjit Singh unified the Sikh misldhars (commanders) and made Lahore the administrative capital of a new Sikh Empire in 1799. In Afghanistan Zaman Shah Durrani was defeated by powerful Barakzai chief Fateh Khan who appointed Mahmud Shah Durrani as the new ruler of Afghanistan and appointed himself as Wazir of Afghanistan. Sikhs however were now superior to the Afghans and started to annex Afghan provinces. The biggest victory of the Sikh Empire over the Durrani Empire came in the Battle of Attock fought in 1813 between Sikh and Wazir of Afghanistan Fateh Khan and his younger brother Dost Mohammad Khan. The Afghans were routed by the Sikh army and the Afghans lost over 9,000 soldiers in this battle. Dost Mohammad was seriously injured whereas his brother Wazir Fateh Khan fled back to Kabul fearing that his brother was dead. In 1819, the Sikhs defeated the Afghans at Shopian and conquered Kashmir.