 When the High Government of the Indies was dissolved in 1799, he resigned as Commissioner of Police, but remained as Governor-General serving the Batavian Republic, which the Netherlands had become under Napoleon Bonaparte.He remained in post until his death in Batavia in 1801.During Van Overstraten's term of office, the Dutch East India Company (VOC) was dissolved, Ternate went into British hands, Batavia was blockaded by a British fleet, and the fortifications on the island of Onrust, and on a few other islands, destroyed.