 Pune was captured by Yashwantrao Holkar in the 1802 Battle of Pune, precipitating the Second Anglo-Maratha War of 1803–1805.Peshwa rule ended with the defeat of Baji Rao II by the British East India Company, under the leadership of Mountstuart Elphinstone, in 1818.In 1818, the Pune region and the rest of the Peshwa territories came under the control of the British East India Company.