Large groups of wild boar have become a common sight in some Spanish cities, with authorities saying they have no option but to capture and kill them.
They say they have become too used to scavenging to live back in the wild, but pose a danger to humans.
Attracted by garbage bins and people feeding them, the wild boar wander or lie about in parks and suburban streets, often causing scooter and bicycle accidents or pestering people carrying shopping bags.
In the beach town of Cadaques northeast of Barcelona, a girl was taken to hospital with injuries this month after an encounter with a wild boar.
Barcelona alone reported 1,200 incidents involving wild boar last year. Colombian popstar Shakira said the animals had attacked her and her son as they walked in a Barcelona park.
"No veterinarian likes to kill animals," Carles Conejero, a veterinary technician in charge of a programme to control the boar problem in Barcelona, told Reuters.
"But we have to do it... We cannot release them back into the wild because they have lost their instincts."
Later that night Conejero's team used drop nets to capture a breeding group of wild boar, which squealed loudly before being sedated and then euthanised.
"This is the worst part of the job," said Conejero as he piled up the dead animals in a van.
Although the problem is not new in Spain, it got worse during the Covid-19 pandemic when more wild animals ventured into urban areas that had turned much quieter due to lockdowns.
Apart from the scheduled captures, Barcelona's plan to tackle the boar encroachment includes protection of trash bins, fines for residents who feed the animals, and social awareness campaigns.
Dead boar are studied for diseases and food habits.
Local residents agreed that the habit of feeding the boar must stop.
"The problem is that they stop being wild animals, they just roam about like cats," one man said.
Spain's Hunting Resources Research Institute estimates that the wild boar population will surpass two million next year.