ألفونسو السابع
It was finally in 1143 when his nominal overlord Alfonso VII of León and Castile recognized the "de facto" independence of Portugal in the Treaty of Zamora.