Spanish is a part of the Ibero-Romance group of languages, which evolved from several dialects of Vulgar Latin in Iberia after the collapse of the Western Roman Empire in the 5th century. The oldest Latin texts with traces of Spanish come from mid-northern Iberia in the 9th century, and the first systematic written use of the language happened in Toledo, then capital of the Kingdom of Castile, in the 13th century. Beginning in the early 16th century, Spanish was taken to the viceroyalties of the Spanish Empire, most notably to the Americas, as well as territories in Africa, Oceania and the Philippines.
Spanish vocabulary has been in contact with Arabic from an early date, having developed during the Al-Andalus era in the Iberian Peninsula. With around 8% of its vocabulary being Arabic in origin, this language is the second most important influence after Latin. It has also been influenced by Basque, Iberian, Celtiberian, Visigothic, and by neighboring Ibero-Romance languages. Additionally, it has absorbed vocabulary from other languages, particularly the Romance languages French, Italian, Occitan, Catalan and Sardinian, as well as from Nahuatl, Quechua, and other indigenous languages of the Americas.
Spanish is one of the six official languages of the United Nations. It is also used as an official language by the European Union, the Organization of American States, the Union of South American Nations, the Community of Latin American and Caribbean States, the African Union and by many other international organizations.
It is estimated that more than 437 million people speak Spanish as a native language, which qualifies it as second on the lists of languages by number of native speakers. Instituto Cervantes claims that there are an estimated 477 million Spanish speakers with native competence and 572 million Spanish speakers as a first or second language—including speakers with limited competence—and more than 21 million students of Spanish as a foreign language.