In the Andalusian village of Rioja, a family-run grocery store has become a place to debate Spain’s upcoming elections. Antonio Cerezo, 32, says all politicians are “liars” and plans to cast a blank ballot. His cousin Patricia Nicolas Cerezo, 43, is unsure who to support. Her 18-year-old son, first-time voter Alfonso Duque, says he will vote for the far-right Vox party: “It can’t get worse than this”.

The family agrees on one point: Prime Minister Pedro Sanchez’s socialists must go. Their views reflect a broader change in Andalusia, a former socialist stronghold now governed by a coalition of the conservative People’s Party (PP) and Vox, which gained support by advocating migrant deportations and drawing on a wider wave of far-right, anti-establishment sentiment in Europe.

Ahead of Sunday’s snap vote, observers say Andalusia’s political dynamics may offer a glimpse of what could happen nationally. Opinion polls put the PP first, followed by Sanchez’s Socialists (PSOE), with Vox third. The PP is projected to fall short of an outright majority, but the two right-wing parties are expected to have enough seats to govern together.

PP leader Alberto Nunez Feijoo has said he would prefer to lead a minority government with Vox’s backing in parliament, while leaving open the possibility of a coalition like the one in Andalusia.

Rioja, a village of about 1,600 people, lies among greenhouses and arid mountains in southern Andalusia. A giant bull silhouette overlooks its plains. The area remained poor and largely agricultural for much of Francisco Franco’s dictatorship. As machines took over more farm work, many Andalusians left for industrial centres such as Barcelona and Madrid. In the mid-seventies, the Socialists gained support among people who had long felt marginalised and neglected.

The PSOE won an absolute majority in Andalusia’s first regional election in 1982, beginning more than three decades in power. But by 2018, a series of corruption scandals had damaged the party’s image and benefited the PP. The PSOE still came first in that year’s regional election, but the conservatives took power with support from liberal Ciudadanos and Vox.

Bosco Govantes, political science associate professor at Sevilla’s Universidad Pablo de Olavide, called the arrangement a turning point. “For the first time, the PP opened the door to the far-right to be able to govern – that created a precedent for everything that happens today nationwide,” he said. “Before, there was a red line, a stigma, over collaborating with the far right. But that move in Andalusia kicked off the normalisation of Vox’s narrative.”

Vox was founded in 2013 by ultraconservatives led by Santiago Abascal, who broke with conservatives they accused of being too indulgent towards Catalan separatists. The party struggled at first to enter the political mainstream, but won seats in Andalusia’s regional parliament in 2018. After the Catalan issue faded from national debate, Vox shifted its focus to migration.

Abascal accuses Sanchez of enabling what he calls “a migrant invasion” to “replace the Spanish people”. The Socialist government adopted an open-door policy and legalised undocumented migrants who had worked in Spain for years. Official figures show the number of foreign-born residents rose from 6.3 million at the start of Sanchez’s rule to 10.4 million last year. Sanchez takes pride in the policy as Spain’s GDP grew under his tenure.

Vox, expected to increase its vote share more than any other party compared with the 2023 elections, wants to reverse those policies. Some observers say the PP has hardened its rhetoric, including calls for stricter measures against migrants, to stop losing voters to its right. Ipsos polling suggested up to 20 percent of Spaniards who voted for the PP in the 2023 elections intended to vote for Vox on Sunday.

Sanchez has framed the election as a contest between progress and regression, warning that PP and Vox “only agree when it comes to cutting back rights”. But some people in Andalusia are not concerned about a deal between the parties. “I don’t mind if Vox is in government,” said Rosaria, a 69-year-old retired housewife. “The PP will keep them in check. It’s a party with vision and structure”.

Sanchez has warned that Vox wants to roll back women’s rights. Gender-based violence is an area of disagreement between the parties: last year, the PP backed renewal of Spain’s cross-party pact on gender-based violence, while Vox wants to repeal the 2004 law protecting women from abuse by current or former partners. Vox says the law discriminates against men and wants it replaced with legislation covering domestic violence regardless of the victim’s sex.

At an event against gender-based violence, Rioja’s PP mayor Olga Maria Gonzalez Jurado said cooperation between the parties in Andalusia was going well. She deflected questions about whether the PP had toughened its immigration stance to keep pace with Vox.

In Andalusia, the parties have pushed for stricter housing rules for non-Spanish applicants. Councils can already prioritise people who live or work locally for subsidised housing, regardless of nationality. Last month, the parties backed a non-binding motion urging Madrid to give Spanish citizens priority for subsidised housing and housing aid. Their regional coalition agreement also promises priority for public benefits and social housing to people with longstanding ties to Andalusia or Spain.

Cooperation elsewhere has affected schools and places of worship. Aragon dropped a school programme teaching Arabic and Moroccan culture this year, and Andalusia is due to follow in 2027. In Jumilla, Murcia, Muslims held Eid al-Fitr prayers in a car park after the PP and Vox backed restrictions on municipal sports facilities. The restrictions have drawn criticism over their impact on Muslim religious gatherings.

In Valencia, the parties backed a rule requiring meat served in school canteens to come from animals stunned before slaughter, while still allowing halal meals that meet the requirement. In the Balearic Islands, they voted to send Spain’s Congress a bill to ban the burqa [full-face veils sometimes worn by Muslim women that hide the entire face, including eyes] and niqab [similar, but the eyes are visible] in public spaces.

Vox has called for the deportation of foreigners it says, among other grounds, also live on public benefits. The article says removing someone with a valid right to stay under this measure has no equivalent in Europe. The party’s policies have left migrants on edge.

Yudy Ramirez, who is from Colombia, entered Spain four years ago. For years, she took care of her child while working two jobs: as an in-house caregiver and a fruit picker at a greenhouse in Almeria for five euros per hour. In June, the 49-year-old received legal papers. “Many of us are scared, because returning is not in the plans at the moment,” she said.

The article says migrants are not all targeted in the same way. It describes an ethno-racial undertone in Vox’s rhetoric, with Spanish-speaking foreigners from Latin America viewed more favourably because they belong to an Iberosphere connecting far-right movements in the Latin world, centred on Vox.

Andalusia relies heavily on foreign workers for its greenhouses. Govantes said the issue was not migrants working in Spain but their recognition of rights. He said the PSOE’s regularisation required owners to make legal contracts, pay social security and provide benefits. “Migrants’ work has always been tolerated as long as it was invisible and illegal. As they became visible and legal, they were accused of robbing Spanish people of jobs,” he said.