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
Brunei–Malaysia border Brunei–Malaysia border The border between Brunei and Malaysia consist of a 481.3 km land border and substantial lengths of maritime borders stretching from the coastline of the two countries to the edge of the continental shelf in the South China Sea. Except for its South China Sea coastline, Brunei is entirely surrounded by Malaysia's Sarawak state and the country only shares a land boundary with Malaysia. Brunei's unique shape where its territory consists of two non-contiguous portions results in its border with Malaysia being broken into two segments. Brunei's 200 nautical mile continental shelfclaim makes it a claimant of a