In 1806, King
Lodewijk Napoleon of the Netherlands sent one of his generals,
Herman Willem Daendels, serving as governor-general of East Indies based in Java.
Daendels was sent to strengthen Javanese defenses against a perceived incoming British invasion. He arrived in the city of Batavia (now
Jakarta) on 5 January 1808 and relieved the former Governor General, Albertus Wiese. He raised new forces, built new roads within Java, and improved the internal administration of the island. Daendels' rule was a harsh and martial one, as the colony prepared for the British threat. He built new hospitals and military barracks, a new arms factories in
Surabaya and
Semarang, and a new military college in Batavia. He demolished the Castle in Batavia and replaced it with a new fort at Meester Cornelis (
Jatinegara), and built
Fort Lodewijk in
Surabaya. However, his best-known achievement was the construction of the
Great Post Road () across northern
Java from
Anjer to
Panaroecan. The road now serves as the main road in the island of
Java; some sections of the road that go through the northern coast of Java became part of
Jalur Pantura. The thousand-kilometre road was completed in only one year, during which thousands of Javanese forced labourers died. Major William Thorn wrote that about 12,000 natives are said to have perished during the construction. The reign of
Catholic King Lodewijk in the
Netherlands ended the centuries-old of religious discriminations against Catholics both in the Netherlands and in the East Indies. Previously the Netherlands only favoured
Protestantism. The Catholics were permitted freedom of worship in the Dutch Indies, though this measure was mainly intended for European Catholics, since Daendels ruled under the authority of
Napoleonic France. This religious freedom would be consolidated later by
Stamford Raffles. Daendels — known as an avid
Francophile — built a new governor general palace in smaller version
Château de Versailles-style in Batavia, known as
Daendels' Palace or
Witte Huis (White House) is often referred to
Groote Huis (Big House). It is now Indonesia's
Ministry of Finance office on the east side of
Lapangan Banteng (
Waterlooplein). He also renamed
Buffelsveld (buffalo field) to
Champs de Mars (today
Merdeka Square). Daendels' rule oversaw the complete adoption of
Continental Law into the colonial Dutch East Indies law system, retained even until today in Indonesian legal system. Indonesian law is often described as a member of the 'civil law' or 'Continental' group of legal systems found in European countries such as France and the Netherlands. Daendels displayed a firm attitude towards the local Javanese rulers, with the result that the rulers later were willing to work with the British against the Dutch. He also subjected the population of
Java to forced labour (
Rodi). There were some rebellious actions against this, such as those in Cadas Pangeran, West Java. He was also responsible for the dissolution of
Banten Sultanate. In 1808, Daendels ordered Sultan Aliyuddin II of Banten to move the Sultanate capital to
Anyer and to provide labour to build a new port planned to be built at
Ujung Kulon. The Sultan refused Daendels' command, and in response Daendels ordered the invasion of Banten and destruction of Surosowan palace. The Sultan, together with his family, was arrested in Puri Intan and held as a prisoner in Fort Speelwijk, and later sent into exile in
Ambon. On 22 November 1808, Daendels declared from his headquarters in
Serang that the Sultanate of Banten had been absorbed into the territory of the
Dutch East Indies. == British interregnum (1811–1816) ==