In the 13th century Alfonso X of Castile standardized the Castilian language and made it the language of court and government.