 The British were able to secure Salsette from the Marathas without violence through the Treaty of Purandar (1776), and later through the Treaty of Salbai (1782), signed to settle the outcome of the First Anglo-Maratha War.From 1782 onwards, the city was reshaped with large-scale civil engineering projects aimed at merging all the seven islands of Bombay into a single amalgamated mass by way of a causeway called the Hornby Vellard, which was completed by 1784.In 1817, the British East India Company under Mountstuart Elphinstone defeated Baji Rao II, the last of the Maratha "Peshwa" in the Battle of Khadki.