Portugal in the Reconquista
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.
Source: Wikipedia — Portugal in the Reconquista (CC BY-SA 4.0)