Альфонсо VIII
Alfonso VIII of Castile granted the city a "fuero" (charter) in 1187.