His enlightened policies met with opposition in Spain. He tried to improve agriculture and industry, reformed the judicial system, and reduced the Inquisition’s powers. His foreign policy was dominated by alliance with France (the Family Compact, 1761). He lost Florida in 1763 but regained it with Minorca in 1783. In 1779 he began a three-year siege of Gibraltar but failed to retake it from Britain.