Portuguese participation in the Reconquista occurred from when the County of Portugal was founded in 868 and continued for 381 years until the last cities still in Muslim control in the Algarve were captured in 1249. Portugal was created during this prolonged process and largely owes its geographic form to it.
The Portuguese Reconquista involved the participation of north European crusaders passing through Portuguese coasts en route to the Holy Land, such as Englishmen, French, Flemings, Normans and Germans, most notably at the conquest of Lisbon in 1147, but also in 1142, 1154, 1189, 1191 and 1217. Many settled in Portugal at the invitation of king Afonso I or his son and successor Sancho I.