When hundreds of women were sexually assaulted on New Year’s Eve in several German cities three years ago, Carolin Matthie decided it was time to defend herself. The 26-year-old Berlin student quickly applied for a gun permit, fearing many women would have the same idea and flood the application process.

“If I don’t do it now, I will have to wait maybe another half year,” she recalls thinking.

Gun ownership is rising across Europe, a continent that until recently faced far less gun crime and violence than much of the globe. Not long ago it was rare to see armed British police.

The uptick was spurred in part by insecurity arising from terrorist attacks—many with firearms, and reflects government efforts to get illegal guns registered by offering amnesty to owners.

Europe is still far from facing the gun prevalence and violence in Latin America or the U.S., which lead the world. World-wide civilian ownership of firearms rose 32% in the decade through 2017, to 857.3 million guns, according to the Small Arms Survey, a research project in Geneva. Europe accounts for less than 10% of the total.