At Zamora in October 1143, in the presence of a papal legate, Alfonso VII of León-Castile recognised his cousin Afonso Henriques as king in Portugal — the diplomatic charter of Portuguese independence.
The Treaty of Zamora of October 1143 is the diplomatic birth certificate of Portugal — the moment the neighbouring power that mattered recognised Afonso Henriques's royal rule. The two cousins, the self-made king and the Leonese emperor Alfonso VII, met at Zamora on the Duero with the papal legate Cardinal Guido de Vico presiding, and closed a war that had run alongside their whole adult lives.
The settlement's genius was its ambiguity. Afonso was king — Alfonso VII, who had taken the imperial title at León in 1135 precisely to preside over other kings, could tolerate a royal cousin as he tolerated royal vassals in Navarre and Zaragoza. Afonso Henriques, for his part, conceded ceremonial deference and, that same December, performed his master-stroke: commending Portugal directly to Saint Peter, as a censual vassal of the papacy at four ounces of gold a year — an overlord conveniently in Rome, invoked precisely to exclude the one in León.
No text of the treaty survives; its content is reconstructed from the chronicles and from what changed in the documents after it. Afonso Henriques's chancery had used rex since Ourique in 1139; after Zamora, Leonese documents stop contesting it. The border war along the Minho and the Duero paused. And the legate's presence tied the settlement to the wider peace Rome was imposing on the peninsula's Christian kings in crusading years.
The papal commendation of December 1143 (the letter Claves regni) began a thirty-six-year diplomatic campaign at the curia. The popes accepted Portugal's census and protection while carefully addressing Afonso as dux — until 1179, when Alexander III's bull Manifestis Probatum finally granted the royal title in full, sealing at Rome what Zamora had conceded on the Duero. Legal independence was not an event but a process; Zamora was its hinge.