Pontevedra, the home city of Spanish Prime Minister Mariano Rajoy, has said its high-profile former resident is no longer welcome there.
Authorities in the north-western city on Monday said they were naming Rajoy a "persona non grata" because of his government's decision to extend the operating license of an unpopular cellulose factory by 60 years.
Environmentalists argue that the factory, which lies just outside the city and manufactures raw materials for paper, pollutes the city's water.
In an assembly of local councillors, Spain's Socialist Party, Galician nationalists and an initiative close to the left-wing Podemos party all voted to declare Rajoy a "persona non grata."
Members of Rajoy's conservative People's Party left the hall ahead of the vote in protest.
Until a few of years ago, Rajoy's party had also supported the factory's closing with the expiration of its operating licence in 2018.