Spanish literature generally refers to literature (Spanish poetry, prose, and drama) written in the Spanish language within the territory that presently constitutes the state of Spain. Its development coincides and frequently intersects with that of other literary traditions from regions within the same territory, particularly Catalan literature, Galician lintersects as well with Latin, Jewish, and Arabic literary traditions of the Iberian peninsula. The literature of Spanish America is an important branch of Spanish literature, with its own particular characteristics dating back to the earliest years of Spain’s conquest of the Americas (see Latin American literature).
The Roman conquest and occupation of the Iberian peninsula beginning in the 3rd century BC brought a Latin culture to Spanish territories. The arrival of Muslim invaders in 711 CE brought the cultures of the Middle and Far East. In Medieval Spanish literature, the earliest recorded examples of a vernacular Romance-based literature mix Muslim, Jewish, and Christian culture. One of the notable works is the epic poem Cantar de Mio Cid, written in 1140. Spanish prose gained popularity in the mid-thirteenth century. Lyric poetry in the Middle Ages includes popular poems and the courtly poetry of the nobles. During the 15th century the pre-Renaissance occurred and literary production increased greatly. In the Renaissance important topics were poetry, religious literature, and prose. In the Baroque era of the 17th century important works were the prose of Francisco de Quevedo and Baltasar Gracián. A notable author was Miguel de Cervantes Saavedra, famous for his masterpiece Don Quixote de la Mancha.
In the Enlightenment era of the 18th century, notable works include the prose of Fray Benito Jerónimo Feijoo, Gaspar Melchor de Jovellanos, and José Cadalso; the lyric of Juan Meléndez Valdés, Tomás de Iriarte and Félix María Samaniego), and the theater, with Leandro Fernández de Moratín, Ramón de la Cruz and Vicente García de la Huerta. In Romanticism (beginning of the 19th century) important topics are: the poetry of José de Espronceda and other poets; prose; the theater, with Ángel de Saavedra (Duke of Rivas), José Zorrilla, and other authors. In Realism (end of the 19th century), which is mixed with Naturalism, important topics are the novel, with Juan Valera, José María de Pereda, Benito Pérez Galdós, Emilia Pardo Bazán, Leopoldo Alas (Clarín), Armando Palacio Valdés, and Vicente Blasco Ibáñez; poetry, with Ramón de Campoamor, Gaspar Núñez de Arce, and other poets; the theater, with José Echegaray, Manuel Tamayo y Baus, and other dramatists; and the literary critics, emphasizing Menéndez Pelayo.