English aid to the House of Aviz (which ruled Portugal from 1385 to 1580) set the stage for Portuguese cooperation with England that would become a cornerstone of Portugal's foreign policy for more than five hundred years. However, English aid to Portugal went back much further to the 1147 Siege of Lisbon, when English and other northern European crusaders – en route to the Holy Land to participate in the Second Crusade – stopped and helped Portuguese King Afonso Henriques to conquer the city from the Moors. In May 1386, the Treaty of Windsor sealed the alliance – first started in 1294, renewed in the Anglo-Portuguese Treaty of 1373 and confirmed at the Battle of Aljubarrota (1385) – with a pact of perpetual friendship between the two countries. The most important part of the treaty stated that: