Alfonso VIII of Castile
Alfonso VIII of Castile granted the city a "fuero" (charter) in 1187.