The Spanish had unofficially surrendered Jamaica to the British prior to the Treaty of Madrid.
In 1670 the Spanish officially ceded Jamaica to British rule as part of the Treaty of Madrid, and the British began a systematic process of settlement, offering land and aid to prospective settlers.