History of Portugal (1640–1777) put to the test in 1762 when Spain invaded aided by France, during the Seven Years' War. Britain invoked its alliance with Portugal and sent troops. Several months later, the conflict was settled with comparatively little fighting. In 1777, Spain and Portugal signed the Treaty of San Ildefonso, which mainly resolved a number of border disputes between their South American colonies. During the Age of Enlightenment, Portugal was considered one of Europe's unenlightened backwaters; it was a country of three million with 200,000 people in 538 monasteries in 1750. Melo seems to have been deeply embarrassed by Portugal's much lamented
Portugal the time of exiting the bailout, the economy had contracted by 0.7% in the first quarter of 2014; however, unemployment, while still high, had fallen to 15.3%. The average salary in Portugal is €910 per month, excluding self-employed individuals and the minimum wage, which is regulated by law, is €580 per month (paid 14 times per annum). The Global Competitiveness Report for 2014–2015, published by the World Economic Forum, placed Portugal on the 36th position on the economic index. The Economist Intelligence Unit's quality of life index placed Portugal as the country with the 19th-best quality of life in the