Based on the terms of the accord, King Alfonso VII of León recognized the Kingdom of Portugal in the presence of his cousin King Afonso I of Portugal, witnessed by the papal representative, Cardinal Guido de Vico, at the Cathedral of Zamora.
Victorious in the Battle of Ourique, in 1139, Afonso Henriques benefited from the developed action by the archbishop of Braga, D. João Peculiar, in favor of the constitution of the new Kingdom of Portugal.
To reconcile Afonso Henriques and his cousin Alfonso VII of León, the archbishop made arrangements for them to meet in Zamora on 4 and 5 of October 1143 in the presence of the cardinal Guido de Vico.
By the terms of the treaty, Alfonso VII agreed that the County of Portugal would become a kingdom, and that D. Afonso Henriques would be its king.
The Portuguese sovereignty, recognized by Alfonso VII in Zamora,[2] was only confirmed by Pope Alexander III in 1179, but the title of rex, which D. Afonso Henriques used since 1140, was confirmed at Zamora, when the Portuguese monarch committed, before the cardinal, to consider himself a vassal of the Holy See, being then obliged, himself and his descendants, to pay an annual tithe to the Pope.