Under the terms of the Treaty of Amiens signed by Britain and France in 1802, the Cape Colony and the islands of the Dutch West Indies that the British had seized were returned to the Republic. Ceylon was not returned to the Dutch and was made a British Crown Colony. After the outbreak of hostilities between Britain and France again in 1803, the British retook the Cape Colony. The British also invaded and captured the island of Java in 1811.