The British Slave Trade Act of 1807 effectively ended all slave trade from the Gold Coast. William I of the Netherlands took over this abolition when he issued a royal decree to that effect in June 1814 and signed the Anglo-Dutch Slave Trade Treaty in May 1818. The abolition of slave trade was coupled with the arrival of Herman Willem Daendels as Governor-General. Daendels was a Patriot who played a major role in the Batavian Revolution, and subsequently became Governor-General of the Dutch East Indies for the Batavian Republic in 1807. This republican and revolutionist background made him controversial in the Kingdom of the Netherlands established in 1815, which effectively banned him from the country by assigning to him the rather obscure governorship of the Gold Coast in 1815.