“Violence is never meaningless, it’s never disconnected from the social context,” he said. “These guys are not simple hooligans who have something wrong with them. It is driven by a sense of illegitimacy in relations between the perpetrator and the victim of violence.”

Mr. Stott says that the games become a venue where people can feel powerful and relevant. Such acting out can mean very unpleasant consequences for their victims.

Fayrouz Yousfi and her friends were walking on a main avenue in Casablanca on the way to a bar on the night of a game between Raja Club Athletic and FAR of Rabat. She recalls feeling her glasses flying off her face and the next minute, she and her friends were on the ground getting smacked and robbed of everything, including phones and purses.

“We were walking because we forgot it was game night, ” said Ms. Yousfi, 20, who studies political science in Paris and was visiting her family at the time. “They were 40, and we were four. They threw me on the floor and started punching me. Unlike my friends, I got lucky — they didn’t touch my private parts.”

Mr. Stott says that such acts involve a dynamic of empowerment for the perpetrators. “Crowds are a place where you can become powerful and when you become powerful you create the world around you,” he said. “You start to express yourself and identity.”

Ticketless youths are allowed in the stadiums at half time — in an attempt to get them off the streets and prevent them from attacking people.

Photo

Despite tight security, a game between Wydad and FAR went sour on April 14.

Rioters threw stones, snatched benches and punched each other inside the stadium. Mr. Baqqali, a Wydad fan, was beaten to death, and the sports facilities significantly damaged.

Advertisement Continue reading the main story

The immediate reaction of the soccer federation was to punish Wydad by ordering it to play its next four games at home in front of empty seats. A public debate began on how to stop the hooliganism, leading the authorities to take new measures.

Newsletter Sign Up Continue reading the main story Please verify you're not a robot by clicking the box. Invalid email address. Please re-enter. You must select a newsletter to subscribe to. Sign Up You will receive emails containing news content , updates and promotions from The New York Times. You may opt-out at any time. You agree to receive occasional updates and special offers for The New York Times's products and services. Thank you for subscribing. An error has occurred. Please try again later. View all New York Times newsletters.

Minors are not allowed inside stadiums without an accompanying adult, and additional police officers are now posted at the stadiums. A committee was also appointed to create a national strategy to counter hooliganism.

Mohamed Ouzzine, the minister of youth and sports, said the crowd violence was a worrying indication of societal problems.

“These acts of violence are becoming systemic, and these gangs of minors are sinking gradually into real criminality,” he said in a statement. “It is not just about enforcing security but rather a problem of education and community involvement.”

Some dedicated soccer fans say that the violence is tarring what had been a healthy activity.

Mohammed Rachid, 26, of Casablanca, has been a soccer fan for seven years and member of the “Green Boys,” a reference to the colors of the Raja Club Athletic.

He dedicates himself completely to his team, organizing choreography like forming flags in the stands.

He follows the team everywhere, even abroad. Supporters like him say that the sense of belonging to a tribe has given them a real purpose in life.

They feel they are actually a part of the team.

“This violence is not specific to soccer,” he said. “It’s just that in Morocco, soccer is the only hobby available for many. These kids come in to take out their anger. The current measures are good, but the state needs to provide these teens with other leisure activities like cinemas and pools.”

Of course, crowd violence happens in other sports and other countries. Last June, serious rioting broke out in central Vancouver, Canada, after the defeat of the hometown Canucks in the National Hockey League playoffs.

Mr. Stott says that governments must deal with the roots of social problems while providing security at games. He recommends scattering small numbers of police officers around stadiums and other areas rather than making heavy shows of force with riot police officers and armored vans.

Advertisement Continue reading the main story

“The police are despised and perceived as the oppressive wing of an autocratic regime,” he said. “They should use consent rather than force. In the long run, measures like moving the stadium outside of the city won’t be enough.”