Standard Spanish originated in the medieval Castilian dialect, more than any other variety.
In 1085, the Castilians conquered the city of Toledo, the traditional old capital of a united peninsular kingdom in the Visigothic era.