Tens of thousands of Catalan separatists have taken part in a final rally ahead of Sunday’s planned referendum on independence from Spain.
Regional President Carles Puigdemont told the crowd that he believed Catalonia would be taking its first steps as a sovereign nation.
Thousands of extra police have been drafted in from across Spain as the government seeks to stop the ballot.
Catalonia, a wealthy region of 7.5 million people in north-eastern Spain has its own language and culture, and a high degree of autonomy, but is not recognised as a separate nation under the Spanish constitution.
Pressure for a vote on self-determination has grown over the past five years but in the 2015 regional election, won by an alliance of pro-independence parties, about 40% of voters backed parties loyal to Spain.
Police across Catalonia have been ordered to prevent public buildings being used as polling stations on Sunday.
Masses of referendum materials have been confiscated by police in recent weeks and officials involved in running the campaign face prosecution.
However, the Catalan government said on Friday it planned to open more than 2,000 polling stations regardless.
During his speech at Friday’s rally Mr Puigdemont said: “Friends, so that victory is definite, on Sunday let’s dress up in referendum (clothes) and leave home prepared to change history.”
He and his predecessor, Artur Mas, later arrived for the rally in Barcelona where the stage was decorated with the words “Referendum is democracy” in giant letters.
Spanish Prime Minister Mariano Rajoy stared down Catalan secessionists when they held a trial referendum in 2014, offering no concessions to their demand for a legal vote.
He has pledged to stop the 2017 vote, saying it goes against the law which refers to “the indissoluble unity of the Spanish Nation, the common and indivisible homeland of all Spaniards”.
Spanish unionists argue Catalonia already enjoys broad autonomy within Spain, along with other regions like the Basque Country and Galicia.
Government spokesman Iñigo Mendez de Vigo accused the Catalan government of being inflexible and one-sided but it is a charge Catalan nationalists throw back at Madrid itself.
Despite the tension in the region, demonstrations by independence campaigners have been largely peaceful.
“I don’t believe there will be anyone who will use violence or who will want to provoke violence that will tarnish the irreproachable image of the Catalan independence movement as pacifist,” Mr Puigdemont said.