The Bárcenas Affair is a corruption scandal in Spain that affects the People’s Party (PP), one of the country‘s main political parties. Following revelations that Luis Bárcenas, who served as party treasurer and senator, held 48 million euros in Swiss bank accounts, extracts of handwritten accounts, the so-called “Bárcenas papers” (los papeles de Bárcenas) were published in the press. Those accounts allegedly indicate that the PP kept, for many years, a parallel bookkeeping system to record undeclared and illegal cash donations, and used them to pay bonuses to senior members of the party as well as for daily party expenses.
The documents cover the period from 1990 to 2009, and suggest that regular cash payments had been made from a slush fund. Those include payments of 25,000 euros ($34,000) a year, for eleven years, to the former Prime Minister, Mariano Rajoy, including, according to El Mundo, during three of the years that he served as minister in José María Aznar's government.
Other leading party figures allegedly involved in the scandal include former ministers Rodrigo Rato, (also a former director general of the IMF, and now serving time for a separate corruption case), Ángel Acebes, Federico Trillo, and former secretaries-general, who also served as ministers, Francisco Álvarez-Cascos, who allegedly received 421,693 euros between 1990 and 2004, Javier Arenas, who allegedly received 234,320 euros, and María Dolores de Cospedal, also Minister of Defence, the most senior party member summoned to date to appear before the investigating judge. and the President of the Senate, Pío García-Escudero 
On 1 August 2013, after “weeks of holding out against demands that he give some sort of explanation for the corruption and illegal funding scandal that has engulfed” his party, Rajoy was finally forced to address Spain's parliament by the threat of a motion of censure. While admitting to having handled the scandal badly, he denied taking illegal funds.
On 22 November 2013, the investigating judge released a writ where he claimed that circumstantial evidence existed that the PP had maintained a parallel accounting system to the official one it presented to the Audit Court.
The trial for the related Gürtel case began in 2016. The verdicts in the first part of the Gürtel case, reached in 2018, had implications for the "Caja B" case, which was was scheduled for trial later that year.
The Bárcenas affair broke out on 18 January 2013, when Spain's leading center-right daily, El Mundo, revealed that the PP treasurer, Luis Bárcenas had, until stepping down in 2009 after being named a defendant in the Gürtel political corruption case, used the slush fund to pay out monthly amounts, ranging from 5,000 to 15,000 euros, to leading members of the party.
On 31 January 2013, Spain’s leading center-left daily, El País, in turn published what became known as the "Bárcenas papers", which consist of facsimile excerpts from handwritten ledgers in Bárcenas’ hand.
Current senate president Pío García Escudero, later stated that one of the payments that figure in Bárcenas’ handwriting corresponded to a cash loan he had been given to repair damage to his home after a terrorist attack, and on 13 August 2013, Cristóbal Páez, a former PP finance manager, testified that he had received 12,000 euros in two payments in 2007 and 2008, as reflected in Bárcenas' handwritten notes.
At the end of June 2013, the investigating judge, Pablo Ruz, faced with the risk of a defendant with access to considerable offshore funds fleeing the country, ordered that Bárcenas be remanded in prison without bail, on charges of tax fraud and money-laundering.
On 7 July 2013, El Mundo published an exclusive interview between Bárcenas and its editor-in-chief, Pedro J. Ramírez, in which the former admitted the authenticity of the so-called "Bárcenas papers", which he had initially denied out of loyalty to his party. He likewise admitted that both he and the previous party treasurer, Álvaro Lapuerta, had received cash donations from real estate agents and other businessmen in "bags, suitcases and briefcases" that were used as a slush fund.
Summonses to testify before the High Court were issued to the following people:
- Francisco Álvarez-Cascos – former secretary general of PP and former minister
- Javier Arenas – former secretary general of PP and former minister
- Manuel Contreras Caro (Azvy)
- Maria Dolores de Cospedal former secretary general of PPd former mi
- Juan Manuel Fernández (Aldesa)
- Alfonso García Pozuelo (Construcciones Hispánica)
- Rosalía Iglesias Villar (Bárcenas’ wife)
- Álvaro Lapuerta (former treasurer of PP), who was eventually excused because of ill health
- José María Mayor Oreja (former chairman of Fomento de Construcciones y Contratas)
- Luis del Rivero (former chairman of Sacyr Vallehermoso)
- José Luis Sánchez Domínguez (Grupo Sando)
- Ángel Sanchis (former deputy and former treasurer of PP)
- Antonio Vilella (Construcciones Rubau)
- Juan-Miguel Villar Mir (chairman and CEO of OHL)
Politicians or party employees who have admitted to receiving payments
- Santiago Abascal, PP city councillor (€12,000)
- Pío García-Escudero, current president of the Senate of Spain (€30,000)
- Jaume Matas (former President of the Balearic Islands and former minister in the Aznar government; as of 2014, serving jail time for a separate corruption case)
- Jaime Ignacio del Burgo
- Calixto Ayesa
- Cristóbal Páez, a former PP finance manager
- Ángel Acebes, former minister.
- "Spain ruling party's ex-treasurer sent to jail in corruption case"Reuters. Retrieved 22 October 2017
- Q&A: "Rajoy party scandal in Spain" BBC News. Retrieved 15 August 2013.
- "Spanish prime minister Rajoy accused of hiding secret income" The Guardian. Retrieved 15 August 2013.
- (in Spanish) “Las cuentas secretas de Bárcenas” El País. Retrieved 15 August 2013.
- “Spain corruption scandal turns up heat on PM Rajoy” Reuters. Retrieved 15 August 2013.
- "Spain Barcenas affair: Documents 'implicate PM Rajoy'" BBC News. Retrieved 23 November 2013.
- "Key players: Spanish ruling party 'slush fund'" BBC News. Retrieved 15 August 2013.
- (in Spanish) El juez Gómez Bermúdez admite la querella de Izquierda Unida por los papeles de Bárcenas. 20 minutos. Retrieved 15 August 2013.
- (in Spanish) La contabilidad de Bárcenas indica que Rajoy y Cospedal recibieron pagos, según 'El País' 20 minutos Retrieved 15 August 2013.
- "Two former PP chiefs admit to lack of control over accounts" El País. Retrieved 15 August 2013.
- El presidente del Senado reconoce un pago anotado por Bárcenas (in Spanish)
- "Rajoy clings to his job" The Economist. Retrieved 15 August 2013.
- "Spanish PM Mariano Rajoy admits 'mistake' over scandal" BBC News. Retrieved 15 August 2013.
- "Spain PM denies taking illegal funds but admits handling scandal badly" The Guardian. Retrieved 15 August 2013.
- "“Circumstantial” evidence exists that PP kept parallel accounts, High Court says" El País. Retrieved 22 November 2013.
- "PP number two blames Rajoy and her predecessor for deal with Bárcenas" El País. Retrieved 15 August 2013.
- (in Spanish) Bárcenas pagó sobresueldos en negro durante años a parte de la cúpula del PP El Mundo. Retrieved 15 August 2013.
- (in Spanish) "Las cuentas secretas de Bárcenas" El País. Retrieved 15 August 2013.
- "Spain's ruling party says all payments to its leaders are legal" Reuters. Retrieved 15 August 2013.
- (in Spanish) "Bárcenas, en la cárcel. Prisión incondicional sin fianza para el ex tesorero del PP" El Mundo. Retrieved 15 August 2013.
- (in Spanish) "Cuatro horas con Bárcenas" El Mundo. Retrieved 15 August 2013.
- (in Spanish) "Uno de los cuatro empresarios de la variante de Pajares admite pagos al PP y los otros los niegan" La Nueva España. Retrieved 15 August 2013.
- (in Spanish) “El concejal del PP, Santiago Abascal admite haber recibido 12.000 euros de Bárcenas” La Voz de Galicia. Retrieved 15 August 2013.
- (in Spanish) “El presidente del Senado reconoce un pago anotado por Bárcenas” El País. Retrieved 15 August 2013.
- (in Spanish) “Destacados miembros del PP avalan los apuntes contables que les afectan” El País. Retrieved 15 August 2013.
- (in Spanish) “Un cargo del PP reconoce que cobró entregas de la lista de Bárcenas” El País. Retrieved 15 August 2013.