Monocle has published its annual quality of life survey that showcases what the global lifestyle media organization defines as the best 25 cities to live in around the world.

This year, the threat of terrorism and restrictions on openness have risen in import. As always, affordability, cultural offerings and the amount land devoted to parks and green space are part of the mix.

Here are the cities that took top spots, along with reasons cited by Monocle for their high quality of life:

10. Madrid
Neighborhood groups and residents are banding together to make the streets cleaner and safer—and easier to manage. Alternative transportation, such as electric car sharing programs and scooters, are also improving air quality.