Treaty of Madrid
The battle of Rio Nuevo was the last Spanish attempt to recapture Jamaica. The island was eventually ceded to England by Spain in 1670 under the terms of the Treaty of Madrid.