Alfonso VII, King of Castile & Léon (1126-1157). He was crowned Emperor at the Cathedral of Léon in 1135. Others had called themselves Emperor, but apparently his was the only coronation.
Upon Alfonso’s death, he divided his realms between his sons—Sancho III of Castile, and Ferdinand II of Léon.