The following year, in September 1787, Daendels played a role in the defense of Amsterdam against the invading Prussian army, which aimed to reinstate William V of Orange.
Subsequently, when William V regained power, Daendels fled to French Flanders to evade a death sentence resulting from the Patriots' defeat.
In the Batavian Republic, Daendels held various political positions but was compelled to resign after failing to avert the Anglo-Russian invasion of Holland in 1799.
Daendels arrived in Batavia (now Jakarta) on 5 January 1808 after a lengthy voyage, assuming the role previously held by Albertus Henricus Wiese.
His most renowned achievement was the Great Post Road (Indonesian: Jalan Raya Pos) that spanned northern Java from Anyer to Panarukan.
Opinions differ regarding the extent to which Daendels improved the efficiency of the local bureaucracy and curbed corruption, although he accumulated personal wealth during his time in office.
On 14 November, during the battle of Smoliani, the French suffered the loss of 3,000 men against General Peter Wittgenstein, and heavy snowfall of about 1.5 meters occurred that day.
Following the downfall of Napoleon, concerns arose within the Dutch government, including King William I, regarding the potential influence and oppositional leadership of Daendels.
After the abolition of the Atlantic slave trade, Daendels aimed to revitalize the neglected Dutch territories into an African plantation colony focused on legitimate business.
Leveraging his experience from the East Indies, he devised ambitious infrastructure projects, such as a comprehensive road network with a primary route connecting Elmina and Kumasi in Ashanti.
On 5 March 1817, the British governor of Cape Coast, John Smith, wrote to the African Committee in Parliament in London, stating, "We deem it our duty to inform you of the conduct of General Daendels, who is acting independent of his Government.
At the beginning of last month, a large Spanish ship was four days at anchor in Elmina roads, receiving water and bartering dollars for goods suited for the purchase of slaves.