With Portugal finally recognized as an independent kingdom by its neighbours, Afonso Henriques and his successors, aided by Crusaders and the military monastic orders the Knights Templar, the Order of Aviz or the Order of Saint James, pushed the Moors to the Algarve on the southern coast of Portugal. After several campaigns, the Portuguese part in the "Reconquista" came to an end with the definitive capture of the Algarve in 1249. With all of Portugal now under the control of Afonso III of Portugal, religious, cultural and ethnic groups became gradually homogenized.