Great Britain occupied Cape Town between 1795 and 1803 to prevent it from falling under the control of the French First Republic, which had invaded the Low Countries. After briefly returning to Dutch rule under the Batavian Republic in 1803, the Cape was occupied again by the British in 1806. Following the end of the Napoleonic Wars, it was formally ceded to Great Britain and became an integral part of the British Empire. British emigration to South Africa began around 1818, subsequently culminating in the arrival of the 1820 Settlers. The new colonists were induced to settle for a variety of reasons, namely to increase the size of the European workforce and to bolster frontier regions against Xhosa incursions.