LGBT literature in Spain, that is, literature that deals explicitly and primarily with characters and issues within the LGBT+ spectrum, is linked to the progressive social acceptance of sexual diversity in Spain. A great surge of authors, publications, awards, bookstores, and publishing housesâÂÂsuch as , the "first openly homosexual publishing house in Spain"âÂÂburst into the scene in the 1990s. In 1995, the CÃÂrculo de Bellas Artes itself in Madrid organized a series of 22 literary gatherings on this subject, which evidenced the flourishing of this type of literature.
In Al-Andalus, a type of poetry flourished that was highly refined and in which homoeroticism was a recurring theme. The Moorish kings themselves wrote this type of pederastic poetry, such as the Abbadid Al-Mu'tamid ibn Abbad of Seville and Yusuf III of the Nasrid Kingdom of Granada. It began to flourish in the first half of the 9th century, during the reign of Abd ar-Rahman II, emir of Córdoba. The fall of the Caliphate of Córdoba in the 11th century and the subsequent rule of the Almoravid dynasty and division into the taifa kingdoms decentralized culture all throughout the Al-Andalus region, producing an era of splendor in poetry. The Almohad invasion brought the emergence of new literary courts in the 12th and 13th centuries. Greater female autonomy in this North African ethnic group led to the appearance of a higher number of female poets, some of whom also wrote poems that sang of feminine beauty.
The homoeroticism present in Moorish poetry establishes a type of relationship like the one described in ancient Greece: the adult poet assumes an active role as opposed to an ephebe who assumes the passive role. This came to produce a literary cliché, that of the appearance of the bozo,  which allows, given the descriptive ambiguity of the poems, both in images and grammatical uses, for identifying the gender of the lover being described. Much of the erotic-amorous poetry of the period is devoted to the cupbearer or wine server, combining the bacchic (îàñÃÂçê jamriyyat) and homoerotic (àðÃÂñçê mudhakkarat) genres.
In realist literature, starting in the last third of the 19th century and for much of the 20th, homosexuality was seen in a negative light. This was influenced by the theses of Italian positivism (Cesare Lombroso considered that homosexuality led to crime), French degeneration (in authors such as Bénédict Morel, Valentin Magnanâ who rejected homosexuality because its spread was contrary to procreation and therefore to the survival of the human speciesâÂÂand Max Nordau, who was inspired by these ideas for his 1892 essay Degeneration-Entartung, 1892âÂÂ1893), and the German clinical school, with theses such as those of Dr. Karl Friedrich Otto Westphal, who maintained that homosexuality was a disease. In literature, homosexual characters appear infiltrated in all social classes and are presented, in general, as elements that threaten the good health of societyâÂÂalthough there are exceptions, such as the chaplain who is the protagonist of Los pazos de Ulloa (1886) (translated into English with the title The House of Ulloa) by Emilia Pardo Bazán. There are examples of effeminate and perverse clergymen in works such as La regenta by Leopoldo Alas "ClarÃÂn". Also, the prototype of the degenerate bourgeois, whose pathology leads him to crime, can be found in the character of Maximiliano in Fortunata y Jacinta (1887) by Benito Pérez Galdós.
In the early 20th century, Spanish homosexual authors such as Jacinto Benavente; Pedro de Répide; José MarÃÂa Luis Bruna, Marquis of Campo, , and had to choose between ignoring the subject of homosexuality or presenting it in a negative light.
At the same time, other non-gay authors continued to typify their characters according to 19th-century naturalist assumptions, which presented them as pathological beings. An example of this is the setting in the Jesuit seminary described by Ramón Pérez de Ayala in A.M.D.G., la vida en los colegios de jesuitas (1910), or the one in the novel La diosa razón (1918) by , who described in detail and from a naturalist perspective the influence of a family background to explain the homosexuality of one of the characters. Others, such as Eduardo Zamacois or , of a progressive and republican mentality, also judged homosexuality negatively as a vice that was typical of the upper-middle class, which had received a traditional education and had lived in a decadent environment, given to luxury and pleasure.
The only ones who openly published literature that dealt with homosexual themes outside of these topics were foreigners. Among them was Chilean author Augusto d'Halmar, who published ' in 1924. A very daring novel for the time, it tells of the attraction that a priest feels for a boy who sings in the choir of the church where he is assigned. Throughout the storyâÂÂwhich has a tragic, but not moralistic endingâÂÂthe characters' sexuality is gradually accepted. There is also Cuban author , who published El ángel de Sodoma (1928), and Uruguayan author Alberto Nin FrÃÂas, who published La novela del Renacimiento y otros relatos (1911), ' (1911), Marcos, amador de la belleza (1913), Alexis o el significado del temperamento urano (1932), and Homosexualismo creador (1932), the first treatise that painted homosexuality in a positive light.
Others took refuge in poetry, such as those belonging to the Generation of '27. Thus, the homosexual or bisexual authors of the Generation of '27 make up a long list, beginning with Federico GarcÃÂa Lorca, Emilio Prados, Luis Cernuda, Vicente Aleixandre, and Manuel Altolaguirre. These poets were influenced by the great European homosexual writers, such as Oscar Wilde, André Gide (especially for his collection of essays Corydon), or Marcel Proust. Moreover, ' (1930) by Emilio GarcÃÂa Gómez was also published after having been previewed in Revista de Occidente, which contained pederastic works by poets from Al-Andalus. The translation of Gide's articles was very controversial because of their evident homoerotic nature, and they had a powerful influence on the poetry of the time, especially in the qasidas of the ' by GarcÃÂa Lorca, who also wrote three works with an explicitly homosexual theme, although none of them was published in Spain during the author's lifetime. These are: the poem Oda a Walt Whitman, the play El público, and the '. The latter remained unknown until 1983, as his family refused to publish them.
In the early 20th century, there was also a timid awakening of lesbian literature. The first work to deal with the subject was Zezé (1909) by ÃÂngeles Vicente. The first theatrical work dealing with the subject, ' by Cipriano Rivas Cherif, premiered in 1929. The only one who dared to publish homoerotic verses was LucÃÂa Sánchez Saornil, although under the male pen name Luciano de San Saor. Other authors, such as Carmen de Burgos, made references to lesbianism in a more veiled manner. In other cases, the homosexuality of the authors is not manifested in their work (as was the case of writers Elena Fortún and Matilde Ras).
Towards the mid-1930s, a timid opening was taking place, which was cut short by the Civil War. After the war, with Lorca having been killed and most gay or bisexual poets in exile, gay culture retreated back to the obscure poetry of Vicente Aleixandre, who never publicly admitted to being gay. In 2016, many years after the poet's death, documents (such as letters and poems) with an explicit homoerotic content began to be made public, including the letters he wrote to his lover Carlos Bousoño.
Different was the case of , whose work is tinged with open homoeroticism, although it was less widely known. It was not until the 1980s, when he was already in his eighties, that he finally received recognition, was bestowed several awards, and saw his complete works published. There are four works in which he deals with the subject of homosexuality: Heraclés: sobre una manera de ser, an essay with his reflections on homoeroticism, written in 1955 and which took 20 years to be published in Spain. Its title refers to the Greek hero Hercules. Los arcángeles: parábola, in which he recalls experiences with other men. Tobeyo o Del amor: homenaje a México, in which he writes about the person he falls in love with during his Mexican exile. And finally, the novel ValentÃÂn: homenaje a William Shakespeare, in which he tells the story of a mature theater director who falls in love with a young actor. It has been adapted for theater and film by Juan Luis Iborra, in 1983 and 2002 respectively. According to MartÃÂnez Expósito (2011):
Other gay poets of the time included many members of the , such as , , Pablo GarcÃÂa Baena, Julio Aumente, and . Younger poets Francisco Brines and Jaime Gil de Biedma were also gay. The latter, despite his rather brief poetic work, had a major influence on the Spanish poetry of his time and later. Professor referred to him as [el] ëpadre espiritualû de la poesÃÂa española posmoderna.  Gil de Biedma's poetry is characterized by its realist and ironic tone, as well as its discretion. Homoeroticism is a recurrent theme, but it is usually treated in an ambiguous and veiled manner. Thanks to the publication of his correspondence, he consciously avoided the apology of homosexuality and, except for Constantine P. Cavafy and Luis Cernuda, he was wary of openly homosexual poetry. Thus, in a letter to publisher , he said:
Gil de Biedma's diaries are much more explicit than his poetry. They were published during the author's lifetime but only after having cut the most risqué passages. They were only published in full after his death.
With regards to Brines, homosexuality is a recurrent theme in his poems, always as a natural manifestation of love (as opposed to the overall social stigma or its ties to what is criminal or sinful). According to literary critic :
After Franco's death and the arrival of democracy in Spain for a second time (the first time was during the Second Republic), there was greater freedom in the publishing world and a resurfacing of the theme of homosexuality (although society was still fundamentally sexist and homophobic during those years of the Transition). As late as 1981, ÃÂñigo Cavero, the of the Union of the Democratic Centre, was retaliating against a radio program on Radio Nacional de España that had discussed the issue of homosexuality.
Oddly enough, despite the political activism waged by some groups during the 1970s, literature in the 1980s barely dealt with these issues. The social invisibility of homosexuals during the Francoist regime and the lack of Spanish-language examples in gay literature meant that new authors (in the case of those who intended to engage in "high culture") took as their models such figures as Oscar Wilde, Jean Genet, Marcel Proust, Arthur Rimbaud, or the Comte de Lautréamont. Those authors who intended to produce more commercial works set their sights on the world of mass culture, with Hollywood cinema being especially important for them.
Among the authors whose success came at the end of the dictatorship or with the Transition, those who stand out include Juan Goytisolo (the most influential outside Spain and the one who continues the tradition of Jean Genet's poètes maudits with notable works such as Coto vedado and Carajicomedia), (Ante el espejo, Chicos, Divino, Oro y locura sobre Baviera, and El mal mundo), Antonio Gala, and Terenci Moix, publicly known for their frequent appearances on television and for being some of the first to publicly come out as gay in the late 1970s.
The novel Todos los parques no son un paraÃÂso by Antonio Roig, a former Carmelite, was published in 1976 to widespread success by Editorial Planeta. It contained autobiographical elements and described his sexual encounters in London, where he had taken refuge after being expelled from the convent.
Starting from the end of the Francoist regime, the novel that best reflects the change in the mentality of homosexuals (and of Spanish society as a whole) is by a gay author, Manuel Vázquez Montalbán, who dealt with the issue in his novel Los alegres muchachos de Atzavara (1987).
Renowned gay authors who started their literary career in the 1970s or 1980s include ÃÂlvaro Pombo, Vicente Molina Foix (La comunión de los atletas), and Leopoldo MarÃÂa Panero. The latter developed a modern style and was an example of a poète maudit, leading a disorderly and scandalous life, with increasing psychiatric issues that, from the 1980s onwards, led to his confinement in various psychiatric hospitals.
Also worthy of mention are , Leopoldo Alas MÃÂnguez (for his poetry and his novel El extraño caso de Gaspar Ganijosa), Vicente GarcÃÂa Cervera (winner of the 1985 literary award for erotic novels with Las cartas de Saguia-El-Hambra, his first published work), , Eduardo Mendicutti, Alberto CardÃÂn, Mariano GarcÃÂa Torres, Pedro Menchén, and AgustÃÂn Gómez-Arcos (who wrote a good part of his work while in exile and in the French language). Mendicutti was the first to include a "leather-type" relationship in one of his novels (Yo no tengo la culpa de haber nacido tan sexy, 1997), in which he used a humorous, campy tone. He was also one of the first to write about a homosexual relationship between cowboys, with his novel Duelo en Marilyn City.
Catalan-language authors include   (El joc del mentider, L'adoració perpètua), , Mallorcan poet Blai Bonet (El mar), Valencian LluÃÂs Fernàndez (L'anarquista nu), and poets NarcÃÂs Comadira, Jaume Creus, and Gaspar Jaén i Urban. Terenci Moix also has works in Catalan, although he wrote most of his works in Spanish. Among his books, his treatment of homosexuality stands out in El dÃÂa que murió Marilyn, Mundo macho, Amanmi, Alfredo, Garras de astracán, and El peso de la paja. was belligerent in the fight for homosexual vindication, although not all his works reflect this in the same extent.
Rafael Chirbes's writing career was launched in 1988 when he was a finalist for the Herralde literary award with his homosexual-themed novel Mimoun. This is also a major theme in his work En la lucha final (1991) and in Paris-Austerlitz, published posthumously in 2016. In the 1980s, Alberto CardÃÂn published three books of poems: Paciencia del destino (1980), Despojos (1981), and IndÃÂculo de sombras (1983).
In theater, 's play ', a historical fantasy based on the assumption that Queen Elizabeth I of England was actually a man, was presented as a vindication of homosexuality. It premiered in 1980 at the in Madrid, under the direction of José Tamayo, with music by Antón GarcÃÂa Abril, and actors , and Gemma Cuervo in the main roles. ', by playwright , deals with homosexuality and transvestism. Written in 1973, it did not premiere until 1982, after a film version by screenwriter, producer and director Pedro Olea, ', had been released.
It was not until the 1990s when there was a great emergence of publications on homosexual themes, not only in the poetry and literary genres, but also theoretical publications that focused on queer theory and a criticism of the heterosexist system. GrÃÂ cies per la propina by stands apart from many novels of previous decades (those by Pombo, Chirbes, LluÃÂs FernÃÂ ndez, or , for example) by not leading its characters to a tragic or lonely end, but rather resolving the conflict created by homosexuality in terms of acceptance and normalization instead of tragedy or isolation and concealment. In the narrative of the 1990s there is an evident playing down and normalization of the homosexual experience in literature.
The works that have had the greatest commercial impact include the memoirs of Terenci Moix, the works by set in a historical setting, and the novel Patty Diphusa (1991) by Pedro Almodóvar, written as the (fictitious) autobiography of a porn actress whose partners are almost all gay and bisexual. In 1992, Carlos Sanrune published his debut novel ', today considered a classic of gay literature from Spain and one of the first novels on this subject translated into a foreign language. It deals with the adventures of a rent boy in Chueca, a gay neighborhood in Madrid. Novels such as De hombre a hombre (1997) by Antonio Fontana were also published around this time.
A special case was that of Peruvian author Jaime Bayly, whose debut novel ' (1994), was a best-selling success in Spain and received praise from critic of El PaÃÂs: la primera y espectacular novela de un joven escritor peruano. 
In 1999, journalist and critic published the novel Algún dÃÂa te escribiré esto, which was subsequently translated into several languages, including French and German. It has been considered one of the best works of Spanish gay literature.
Bisexuality is one of the main themes of Antonio Gala's novel La regla de tres, published in 1996. The protagonist, Octavio Lerma, is an older, bisexual writer who enters into a relationship with both Asia, a woman his age, and her husband, a young man named Leo. The novel was not well received by critics. Luis de la Peña of El PaÃÂs criticized its superficiality and lack of believability.
Also around this time the first lesbian authors started to be noticed. Gloria Fuertes never wanted her homosexuality to be made public, but other poets did openly declare it, such as Andrea Luca or Cristina Peri Rossi. The latter had begun her literary career in Uruguay in the 1960s. However, she went into exile in 1972 in Barcelona, where she wrote most of her work, containing strong political undertones.
Other authors have dealt with themes of love between women, such as Ana MarÃÂa Moix, , Esther Tusquets (El mismo mar de todos los veranos, El amor es un juego solitario, Varada tras el último naufragio, Con la miel en los labios), Carme Riera, Elena Fortún, and Isabel Franc (Entre todas las mujeres, Con pedigree, Plumas de doble filo, La mansión de las trÃÂbadas). Also, LucÃÂa EtxebarrÃÂa, in her novel ' (which won the Premio Nadal literary prize in 1998) and later works such as Nosotras que no somos como las demás or many of the stories in Una historia de amor como otra cualquiera, in which lesbian characters coexist with other heterosexual characters, showing human sexuality from a broad perspective, without reducing lesbianism to a forbidden subject. In 1998, Clara Usón published her first novel, Noches de San Juan (which won the for female authors that same year). It tells the story of the Saint John's Eve festivities in Ciutadella de Menorca, with a style that Ana MarÃÂa Moix described as almodovariano. Moreover, Maria Mercè Marçal is worthy of note as an author in the Catalan language.
In theater, there were also plays in which homosexuality was the main theme, such as Qué más da by , a play with a biographical background about a writer and the world of social alienation, drugs, and homosexuality. Testamento, by Josep Maria Benet i Jornet, tells of the relationship between an educated homosexual professor and a rent boy. The play attracted the critics' attention because of how crudely it exposed a sordid homosexual relationship. According to theater critic , it was [una] perversa forma de teatro bien hecho que no es lo mismo, quizá, que buen Teatro. The play was adapted to film in 1998 with the title Amic/Amat (Beloved/Friend), directed by Ventura Pons.
Another play that is also famous due to its subsequent film adaptation was Krámpack by Jordi Sánchez, which premiered in 1998.
In popular theater, one playwright who dealt with homosexual themes was , who had enjoyed great box-office success in the 1980s with comedies starring Florinda Chico and Rafaela Aparicio. In 1994, his play Feliz cumpleaños, señor ministro (Ciudad de San Sebastián award, 1992) premiered at the in San Sebastián. The play addresses the themes of homosexuality and transsexuality. However, according to playwright , his most important work on homosexuality was ', which premiered in Madrid in 2003. It represented a significant development in that it addressed the issue from the point of view of someone with conservative ideological assumptions.
Moreover, popular variety theater in alternative circuits has always had shows of a markedly gay nature, based on cross-dressing, humor, and cabaret. Miss Shangay Lily achieved certain notoriety in the Madrid nightlife of the 1990s for organizing the so-called Shangay Tea Dance, which brought to Spain the Anglo-Saxon concept of theme parties in different venues. An attempt to give a more literary character to this type of celebrations and shows was the play Sota, caballo y gay by Manu Berástegui, which was performed at the Teatro Estudio in Madrid in 1999.
Among the numerous essays that were also written on these themes, the ones that stand out include HomografÃÂas and ExtravÃÂos, both written by Ricardo Llamas and Francisco Javier Vidarte, and Salir del armario by Alfonso Llopart. Moreover, journalist Joan MartÃÂnez Vergel published a book of interviews with members of the gay community in Spain, titled Gái, ÿel quinto poder? 
The normalization of homosexuality in the 21st-century Spanish society also manifested itself in the publishing world. Works with this theme were no longer being considered underground or exceptional. Literary critic referred thusly to the book of short stories ' by ÃÂscar Esquivias:
Even heterosexual authors address issues with strong homoerotic undertones in their plots, such as Juan Bonilla in Los prÃÂncipes nubios (which won the Biblioteca Breve literary award), Marta Sanz with her series of novels about Zarco, a gay detective, or in El médico de Ifni.
This normalized experience of homosexuality was highlighted by critics upon reviewing the novel Isaac y las dudas by , originally written in Catalan (as Isaac i els dubtes) and translated into Spanish by . The treatment of homosexuality has been a constant in Todó's work. In 2015, he published L'últim mono or El último mono (in Catalan and Spanish, respectively), a novel about a young gay man who is addicted to heroin and relapses for the third time after trying to get rehabilitated.
Eduardo Mendicutti's novel California was published in 2005. It reflects the evolution of homosexuals in Spain and how, at the time of the discussion surrounding same-sex marriage in Spain, the main character becomes aware of the need to take sides, get politically involved, and make changes in society. In a way, the novel reflects the path of homosexuals in the country, how they went from being ostracized and scorned to being an organized and influential community that managed to get legal recognition of their rights. His novel Otra vida para vivirla contigo (2013) tells a romantic story between a councilman and a writer. According to critic , it is one more sign of [la] normalización romántica, en el sentido de sentimental, de la literatura gay.  In 2016, Mendicutti published Furias divinas, a novel about transvestites set in La Algaida (a literary reference to Sanlúcar de Barrameda, the author's hometown).
The case of ÃÂlvaro Pombo is especially significant: his early work was ambiguous and cryptic, but has gradually become more honest about homosexuality, which, in his case, he has experienced in a conflictive manner. Professor Alfredo MartÃÂnez Expósito considers this an example of internalized homophobia. In 2006, Pombo published Contra natura, a novel in which the treatment of homosexuality shows a determination and depth rarely seen in Spanish literature. The novel covers a wide period of time, from the first Francoism to the early years of the 21st century, and portrays characters of Pombo's own generation. According to literary critic José MarÃÂa Pozuelo Yvancos, the novel is:
In the novel's epilogue, the author himself, ÃÂlvaro Pombo, presents the autobiographical code that unlocks a story featuring different models of experiencing homosexuality. One of them, embodied in the character of Javier Salazar, seems to be the closest to Pombo's own experience: that of an educated, intellectual man, whose relationship with his sexuality is problematic and unsatisfactory, as he cannot experience it with a carefree, happy, or full abandon, and he harbors feelings close to those of Thomas Mann, who linked homosexuality with death.
The multi-narrative novel Viaje al centro de la infamia, written by historian Miguel ÃÂngel Sosa MachÃÂn, was published in 2006. It is set in the mid-1950s and alludes to a real place, the in FuerteventuraâÂÂa prison farm and concentration camp during the Francoist dictatorship, set up to "rehabilitate" homosexuals through forced labor, especially breaking rocks.
Leopoldo Alas MÃÂnguez's novel La loca aventura de vivir, a light-hearted story set in the neighborhood of Chueca, was published in 2009.
That same year, Núria Añó's novel Núvols baixos was published in Catalan. Although its unquestionable protagonist is Gabriele, the novel tells the lives of three women in search of their identity after their entire existence. A balance that shows the complexity of the three situations and where their sexuality fluctuates and all types of love are represented.
The protagonist of the detective novel El primer caso de Cate Maynes (2011), by Clara Asunción GarcÃÂa, is a lesbian. It combines elements typical of crime novels, but also of romantic and erotic ones, to the point of openly depicting its protagonist in erotic scenes.
The novel ' by was also published in 2011. With it, López became a finalist for the 2010 Premio Nadal literary award. It was adapted into a television series of the same name. Starting with this novel, López began a prolific career in which he alternates between playwriting and narrative writing, with novels for adults and young people. Among his adult literary works with LGTB protagonists and themes, titles that stand out include Hasta nunca, Peter Pan, La inmortalidad del cangrejo, El sonido de los cuerpos, Cuando todo era fácil, and, especially, ', published in 2023. In the latter, he addresses the persecution of homosexuals in the 1950s after the reform of the and the creation of concentration camps such as . As for his young adult books with LGTBI+ protagonists, titles include Cuál es tu lucha, Nadie nos oye, and La versión de Eric, in which the main character is a trans teenager. With the latter, López won the award for young adult literature in 2020.
In 2014, writer Vicente Molina Foix and poet published their co-written book El invitado amargo. It is interspersed with chapters written by each of the authors, in which they reminisce about their relationship dating back decades, starting in 1981. According to literary critic :
Also in 2014, Almudena Grandes's novel ' describes the situation of homosexual people in Spain immediately after the Spanish Civil War through characters who, although secondary, are key factors in the narrative, such as Paco Román, la Palmera, and la madre Carmen, as well as the real writer , turned into one of the characters. In that same year, poet published her first novel, Inercia (Baile del Sol, 2014), in which one of the protagonists is a lesbian.
Apart from the aforementioned writers, new gay authors appeared or got established. These include (L'aprenentatge de la soledat, 2007), in Catalan, as well as the following, in Spanish: (', winner of the Fourth award for LGBT literature), Susana Hernández (writer) (who created the character Santana, a lesbian detective with the National Police Corps who is the protagonist of several novels, such as Curvas peligrosas and Contra las cuerdas), Luisgé MartÃÂn (La muerte de Tadzio), (Mansos), ÃÂñigo Sota Heras (with his first novel, Las distancias cortas, 2008), ÃÂscar Esquivias (Jerjes conquista el mar, ', ', Andarás perdido por el mundo), ÃÂngel Román (LicantropÃÂa emocional), Chris Pueyo (El Chico de las Estrellas), (Hermano, Sebastián en la laguna, Lo peor de todo es la luz), and (A pesar de todo, 2002; El tiempo del corazón, 2002; Una madre, 2014).
Others who stand out include (Llévame a casa, finalist for the 2003 award), , Marta Garzás, and . The latter won the award for LGBT+ literature for her novel La daga fenicia, the fourth installment in a series of novels she began publishing in 2009.
Rafael Chirbes' last novel, Paris-Austerlitz, on which he was working until a few months before his death, was published posthumously in 2016. It contains autobiographical elements. Set in Paris, it tells the story of the gay relationship between a young painter from Madrid and a worker of Norman descent, much older than him, who would later contract AIDS. That same year, Luisgé MartÃÂn published his autobiographical book El amor del revés (Anagrama, 2016), a memoir in which he narrates how he gradually came to terms with his homosexuality. In 2017, published his memoir Dorados dÃÂas de sol y noche (Pre-Textos), encompassing his life from 1974 to 1996 and in which the homosexual scene, especially that of Madrid, is featured prominently.
Literary works written by trans, queer, and non-binary authors also gained prominence in the first decades of the 21st century, with writers such as Paul B. Preciado, Alana Portero, Roberta Marrero, and , with the influence of Latin American authors such as Pedro Lemebel and Camila Sosa Villada.
Asalto a Oz, antologÃÂa de relatos de la nueva narrativa queer (Dos Bigotes, 2019) brings together fifteen authors who represent the evolution of LGBT+ issues in recent years According to Luisgé MartÃÂn, with regards to the work of previous generations (exemplified by the anthology Lo que no se dice), the youngest ones have left behind the problematic approach to their homosexuality, they question the division by gender, transsexuality becomes a main argument (with the social condemnation that was previously reserved for homosexuality), the number of women authors has increased, there are no humorous themes, and short stories no longer aspire to fit into the Borgesian narrative model.
Due to the scarce representation of lesbian authors in published works as a whole, the anthology Voces en la narrativa lésbica (2007), edited by Minerva Salado, is worthy of note. It includes twenty authors (not only from Spain but also Latin America) and a wide variety of texts in prose, verse, and poetic prose.
The book of short stories ÃÂbreme con cuidado (2015) posed the challenge of paying homage to great female literary figuresâÂÂPatricia Highsmith, Virginia Woolf, Marguerite Yourcenar, Carson McCullers, and Gloria Fuertes, among othersâÂÂby turning them into the protagonists of unpublished stories written by Isabel Franc, Clara Asunción GarcÃÂa, , Carmen Samit, Gloria Fortún, Lola Robles, Carmen Nestares, Carmen Cuenca, and Gloria Bosch Maza.
The anthology Tu piel en mi boca (Egales) was published in 2004. It includes homoerotic stories by , Marcelo Soto, Lawrence Schimel, , , , Eduardo Mendicutti, Antonio Jiménez Ariza, , Juan P. Herráiz, Francisco J. Gutiérrez, Luisgé MartÃÂn, Luis Deulofeu, , , and Leopoldo Alas MÃÂnguez.
Lo que no se dice (Dos Bigotes) was published in 2014. It is an anthology with unpublished stories by Spanish gay authors who contributed their personal vision on various topics characteristic of Spanish society in which homosexuality is not fully accepted: football, bullfighting, religion, country living, etc. As a result, Luis Antonio de Villena wrote about the military service; Eduardo Mendicutti, about a homosexual bullfighter (although the author is repulsed by bullfighting); Luisgé MartÃÂn, about football; LluÃÂs Maria Todó, about the Boy Scouts in Catalonia in the 1960s; Nando López, about homophobia in secondary education; ÃÂscar Esquivias, about Catholic catechists; Luis Cremades, about a parish choir; Lawrence Schimel, about flamenco; José Luis Serrano, about homosexuality within the working class; ÃÂscar Hernández Campano set his story in a farmhouse in the Basque Country; and wrote about a conservative family. The book was illustrated by Raúl Lázaro.
The poetic discourse on homosexuality, according to poet , is manifested in the Spanish poetry of the early 21st century with great moderation and caution to avoid controversy.
For journalist Jordi Sierra Márquez, one exception would be Javier Gato's Diario de un gato nocturno, a collection of poems that insists on describing an explicit sexuality, related to drug use and existing in the fringes of society.
Authors who stand out include: Juan Antonio González Iglesias, Luis Muñoz, , and . According to Luis Antonio de Villena, González Iglesias is uno de los tres mejores poetas nuevos de España. 
Luis Muñoz's poems are characterized by a sentimental minimalism and sometimes evoke gay authors such as or Paul Verlaine. According to critic , the two versions of Muñoz's poem HomosexualidadâÂÂpublished in his book Correspondencias (Visor, 2001)âÂÂreveal the author's desire to represent two stages in the erotic development of a person: a first one of isolation, and then one of acceptance.
On his part, Rafael-José DÃÂaz published Antes del eclipse (2003-2005) (Pre-Textos, 2007), in which he delves deeper into the issues he had previously written about and also approaches homosexual eroticism in a frank manner.
Ariadna G. GarcÃÂa has addressed the theme of love in her five poetry books without hiding her homosexuality. Her work sometimes explores social criticism and denounces homophobia and discrimination.
Other LGBT+ poets who became known in the 2000s include: , , , ÃÂngel Borreguero, Sara Torres, and .
Some works that are worthy of mention include: Mujeres que aman a mujeres (Vitruvio, 2012)âÂÂan anthology of lesbian poetry edited by Carmen Moreno PérezâÂÂBlanco nuclear. AntologÃÂa de poesÃÂa gay y lésbica última (Sial, 2011) by Luis Daniel PinoâÂÂan anthology of poems by Alberto Acerete, Cristian Alcaraz, Ariadna G. GarcÃÂa, SofÃÂa Rhei, and Lawrence Schimel, among othersâÂÂand Correspondencias, una antologÃÂa de poesÃÂa contemporánea LGTB española (Egales, 2017), a bilingual (English and Spanish) anthology of contemporary Spanish LGTB poetry. 
Homosexuality is present in several works by Catalan author Josep Maria Miró. His play Gang bang (2011) is set in a gay bar during the Pope's visit to Barcelona and contains explicit scenes of gay sex. There were protests from religious groups who considered it una ofensa grave y oportunista a los católicos.  El cos més bonic que sâÂÂhauràtrobat mai en aquest lloc (The Nicest Body Ever Seen Around These Parts, English translation by Sharon G. Feldman) (2020), tells the story of a young boy found murdered in a field near his village, and the reactions of different characters to his death and his story. Jo, travesti (Me, Trans) (2023) is a reflection on transvestism and transsexuality. Miró also wrote the play Els homes i els dies (Men and Days) (2022), based on the complete narrative work and life of David Vilaseca. Additionally, he published the article La bambalina oculta (The Backstage Closet) for the monographic issue Homosexualitat i teatre (Homosexuality and Theater) in Hamlet magazine (Hamlet magazine, issue #23, February 2012, pages 63âÂÂ67.)
Nando López has also addressed homosexual relationships in both his narrative and dramatic works. In 2012, he premiered his play Cuando fuimos dosâÂÂon the subject of the breakup of a gay coupleâÂÂat the Sala Triángulo theater in Madrid. The play was revived in 2013 at the in Madrid. Moreover, López has also addressed LGTBI themes in plays premiered inside and outside Spain, such as #malditos16 (a candidate for the Premios Max award for best new author), La edad de la ira, Desengaños amorosos (a loose adaptation of the novels of MarÃÂa de Zayas and a candidate for the Premios Max for best adaptation), and Los amores diversos, among others.
In 2005, also at the Sala Triángulo, premiered his play Las heridas del viento. It was revived in 2013 at the in Madrid after having been performed in New York and several Latin American countries, with a new cast in which actress Kiti Mánver plays a man. is another author who has repeatedly addressed homosexual themes. The revival of his play Climax opened the season at the in Madrid in 2013, and his Una vida perfecta premiered that same year.
In 2012, Guillem Clua premiered Smiley, a romantic comedy about two gay men, which was later adapted into a television series of the same name. Moreover, his play La golondrina (2017) achieved great international commercial success. The play is framed by the 2016 Pulse nightclub shooting in Orlando. It deals with how the partner of one of the young men killed during the attack outs him to his mother.
In 2014, premiered Cliff (Acantilado), a play inspired by the life of actor Montgomery Clift, which had previously premiered in Buenos Aires under the direction of Argentine playwright . The play won the 2011 for LGTB dramatic literature (better known as LAM). Other works by Conejero that address the subject of homosexuality, in one way or another, are Húngaros and La piedra oscura. The latter explores the relationship between Rafael RodrÃÂguez Rapún and Federico GarcÃÂa Lorca. Additional works by Conejero include La geometrÃÂa del trigo, a play for which he won the National Dramatic Literature Award in 2019, and En mitad de tanto fuego, a monologue that rewrites Homer's Iliad from the point of view of Patroclus and his relationship with Achilles.
In 2018, Luis Miguel Sánchez Mota won the Fray Luis de León Award with Latidos, which addresses the friendship that blossoms between a young man and a middle-aged man who meet while cruising.
has also dealt with the subject of homosexuality in some of his plays. In 2004, he premiered La fascinación de Gil-Albert, influenced by the works of Juan Gil-Albert, written on the occasion of the centennial of his birth, and published in 2006. The play presents Gil-Albert himself as the protagonist and includes his reflections on homosexuality published in his essay Heraclés: sobre una manera de ser. Montalbán Kroebel published Paso a dos in 2006, while the play premiered in 2009.
Once a year, between 2005 and 2012 (the last time it was held), the Festival Visible de Cultura LGTB presented a series of eventsâÂÂin which theatrical performances stood outâÂÂto coincide with the celebrations of the International LGBT Pride Day in Madrid. In 2007, at the request of Festival Visible director and with help from playwright to draft the contest rules, Festival Visible and the SGAE Foundation together with ÃÂscar Millares, head of the SGAE theater section, announced the for LGTB dramatic literature (LAM). Winners and finalists have included:
The journal Orientaciones was published from 2000 to 2006. Through it, philosopher Javier Pérez Ugarte spread information about LGBT+ studies to the point of becoming, according to anthropologist , uno de los principales referentes para el pensamiento y la reflexión sobre diversidad sexual en castellano.
In 2012, the (ACEC) organized the First Conference on Gay and Lesbian Literature, in which the subject was studied from an academic and creative point of view. In attendance were academics and writers such as LluÃÂs Maria Todó, MarÃÂa Castrejón, Alberto Mira, Eduardo Mendicutti, and Isabel Franc.
In the essay category, the works that were published included: De Sodoma a Chueca: historia cultural de la homosexualidad en España 1914âÂÂ1990 (Egales, 2004) by , and El paciente ocasional: Una historia social del sida by Ibon Larrazabal, with a prologue by Rafael Reig (Ediciones PenÃÂnsula, 2011).
published Placeres ocultos. Gays y lesbianas en el cine español de la Transición (Notorious, 2010), on the reflection of homosexuals in Spanish cinema.
Several books on male prostitution have been published as well: La difÃÂcil vida fácil: Doce testimonios sobre prostitución masculina by , with a prologue by Luis Antonio de Villena (Punto de Vista, 2016), and Chaperos, precariado y prostitución homosexual by Eduardo Lizardo and Oscar Guasch (Bellaterra, 2017).
The normalization of these themes in society has also had an impact on children's and young adult literature. Stories that deal with sexual diversity and same-sex families began to be published in 2001. For instance, publishing house Ediciones La Tempestad published that year El prÃÂncipe enamorado by Carles Recio, a short story for children in which the protagonist, the son of the King of Valencia, falls in love with his male servant. In 2002, Editorial SM published the young adult novel El beso de Aquiles by Alberto Conejero, in which the protagonist has to confront his own homophobic beliefs. Paula tiene dos mamás by Léslea Newman (Bellaterra) and La princesa Ana by Luisa Guerrero (ONG por la No Discriminación), both children's books with lesbian protagonists, were published in 2003. The latter was adapted to the theater in 2010, a play with which theater company Tarambana won the prize of the campaign áSal a escena contra la discriminación!  awarded by the Ministry of Health, Social Policy and Equality.
Moreover, the publication of Nando López's novel La edad de la ira (which he published under the name Fernando J. López) marked a new step forward with regards to narratives that address the reality of LGBT+ youth, as it deals with issues such as school bullying and adolescent homosexuality. Its great success among younger audiences and the teaching community has led to it becoming a classic in classrooms across Spain. The same goes for its theatrical version, written by the author himself and staged by theater company La Joven.
When López was awarded the 2020 Premio Gran Angular award by the Fundación SM for the young adult novel La versión de Eric, which has a trans protagonist, it marked a new milestone in children's and young adult literature with LGTB characters and themes. Other works by this author that have enjoyed great success among young audiences and in which various orientations and identities play a leading role include: Nadie nos oye, En las redes del miedo, and El reino de los Tres Soles.
El fuego en el que ardo by Sevillian author and literary translator Mike Lightwood was published in 2016 and its companion novel El hielo de mis venas, a year later, both by publishing house Plataforma Neo. Both deal with the issues of homophobic school bullying, acceptance, first romances, and first sexual encounters between boys. A spin-off novel, La estrella de mis noches, about the romance between two boys who meet again after several years, was published later. Lightwood also published the futuristic science fiction novel Biónico, in which most of the characters are LGBT+.
In 2014, as part of the events surrounding Madrid Pride, the First LGTBQ Book Fair was held on the street in Madrid, with the presence of writers and specialized publishing houses.
The first publishing house in Spain to publish LGBT+ literature on a regular basis was Editorial Laertes in Barcelona. In 1985, it created the Rey de Bastos collection, managed by Alberto CardÃÂn until his death, and which dealt exclusively with this genre. Later, in the 1990s, several specialized publishing houses began to appear, including in 1995 and Odisea in 1999.
In the 21st century, the following houses were also founded: Stonewall (2011), (2014), La Calle (2014), and Amistades Particulares (2014). The latter is a small independent publishing house dedicated to the recovery of LGBT+ works from the late 19th and early 20th centuries. In addition, independent house Baphala Ediciones was founded in 2016. It specializes in postcolonial LGTBIA literature.
From 1999 to 2013, publishing house Odisea awarded the award to books dealing with gay and lesbian themes published in Spanish. In 2005, non-profit foundation Arena began awarding the Terenci Moix prize for gay and lesbian narrative. In 2012, its name was changed to . Since 2011, publishing house Stonewall has been awarding the Premio Stonewall prize for LGBT+ literature.
There are several LGBT+ bookstores in various Spanish cities, such as and A different Life in Madrid, and in Barcelona, and Safo de Lesbos in Bilbao.