Catalonia’s independence referendum has begun in chaotic fashion, with police attempting to prevent the vote from taking place.
The Spanish government has pledged to stop a poll that was declared illegal by the country’s constitutional court.
Police officers are preventing potential voters from entering polling stations, and are also seizing ballot papers and boxes.
Nonetheless, Catalan government officials have predicted a big turnout.
In the town of Girona, riot police smashed their way into a polling station where the region’s leader Carles Puigdemont was due to vote.
Television footage showed them breaking the glass of the sports centre’s entrance door and forcibly removing those attempting to vote.
However, Reuters news agency reports that Mr Puigdemont was still able to cast his ballot.
How is the day unfolding?
Thousands of separatist supporters had occupied schools and other buildings that have been designated as voting centres ahead of the polls opening.
Many of those inside were parents and their children, who remained in the buildings after the end of lessons on Friday and bedded down in sleeping bags on gym mats.
In some areas, farmers positioned tractors on roads and in front of polling station doors, and school gates were taken away to make it harder for the authorities to seal buildings off.
But police insisted polling stations would not be allowed to open, and that those inside would be evicted.
In the early hours of Sunday morning, dozens of national police vehicles left their base in the port of Barcelona as officers were deployed.
Referendum organisers have called for peaceful resistance to any police action.
The ballot papers contain just one question: “Do you want Catalonia to become an independent state in the form of a republic?” There are two boxes: Yes or No.
Ahead of the polls opening, the Catalan government said voters could use any polling station if their designated voting place was shut.
Sunday would be an “important date for democracy”, regional Vice-President Oriol Junqueras told TV3, the main Catalan public channel.
How did Madrid prepare for the vote?
Thousands of extra police officers have been sent to the region.
The Spanish government has put policing in Catalonia under central controland ordered the regional force, the Mossos d’Esquadra, to help enforce the ban on the illegal referendum.
In a show of force ahead of the poll, Spanish authorities seized voting materials, imposed fines on top Catalan officials and temporarily detained dozens of politicians.
Police have also occupied the regional government’s telecommunications centre.
Why is a vote being held?
Catalonia, a wealthy region of 7.5 million people in north-eastern Spain, has its own language and culture.
It also has 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 Spanish unionists argue Catalonia already enjoys broad autonomy within Spain, along with other regions like the Basque Country and Galicia.
Why is Madrid so opposed?
Spanish Prime Minister Mariano Rajoy says the vote goes against the constitution, which refers to “the indissoluble unity of the Spanish nation, the common and indivisible homeland of all Spaniards”.
Central government spokesman Iñigo Mendez de Vigo accused the Catalan government of being inflexible and one-sided, but it is a charge that Catalan nationalists throw back at Madrid itself.