Henry was keen to have good relations with Spain and achieve some of his foreign policy aims, so he signed the Treaty of Medina del campo in 1489, which gave mutual protection, ensured they would not harbour rebels or pretenders, and organised the marriage of Arthur to Katherine of Aragon.