in 1803 the bombay presidency included only salsette, the islands of the harbour (since 1774), surat and bankot (since 1756); but between this date and 1827 the framework of the presidency took shape. the gujarat districts were taken over by the bombay government in 1805 and enlarged in 1818. baji rao ii, the last of the peshwas, who had attempted to shake off the british yoke, was defeated in the battle of khadki, captured subsequently and pensioned (1817/1818), and large portions of his dominions (pune, ahmednagar, nasik, solapur, belgaum, kaladgi, dharwad, etc.) were included in the presidency, the settlement of which was completed by mountstuart elphinstone, governor from 1819 to 1827. his policy was to rule as far as possible on native lines, avoiding all changes for which the population was not yet ripe; but the grosser abuses of the old regime were stopped, the country was pacified, the laws were codified, and courts and schools were established.