Britain finally ceded the island to Spain in the year 1802, under the terms of the Treaty of Amiens.
In 1802, The Treaty of Amiens gave Britain's control of the island to Spain.
Spain allowed Britain to keep the island and never bothered Britain again.