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
Bangladesh–India border fencing was completed at the cost of by November 2007. The deadline for project completion was set to 2008–09. By October 2009, about 2649 kilometres of fencing along with about 3326 kilometres of border roads were completed. The deadline for project completion was revised to March 2010. By March 2011, 2735 kilometres of fencing was completed and the deadline was revised to March 2012. Assam shares 263 km of border with Bangladesh out of which 143.9 km is land and 119.1 km is riverine. As of November 2011, 221.56 km of fencing was completed. India has completed the installation of