When Great Britain went to war with France in 1793, both countries tried to capture the Cape so as to control the important sea route to the East. Although the British relinquished the colony to the Dutch in the Treaty of Amiens (1802), they reannexed it in 1806 after the start of the Napoleonic Wars.