 The elements he had to deal with could not be welded together.The weakness of Aragon enabled him to make his superiority effective.After Afonso Henriques recognised him as liege in 1137, Alfonso VII lost the Battle of Valdevez in 1141 thereby affirming Portugal's independence in the Treaty of Zamora (1143).