Barcelona fans will be handed 10,000 Scotland flags for Sunday's Copa del Rey final with Sevilla after pro-Catalan independence flags were banned.
The government's representative in Madrid decided not to allow the 'Estelada' flag to be used in the game in the city's Vicente Calderon ground for "operational and security reasons".
Scotland were given an independence vote in 2014, but voted against it.
The Spanish government will not allow Catalonia a similar referendum.
Catalan nationalist organisations are orchestrating this weekend's move.
"We've chosen this symbol because it highlights the different treatment that Catalonia receives from Spain, compared with the UK government's treatment of Scotland," a group of bodies said in a statement.
On Wednesday, Barcelona released a statement following the Estelada ban.
"FC Barcelona considers the decision to be an attack on the freedom of expression, the fundamental right of each and every individual to express their ideas and opinions freely and without censorship, a right which is recognised in the Universal Declaration of Human Rights," it read.