Vienna, Austria is the city with the best quality of life on the planet, according to a new ranking by Mercer, a human resources consulting firm. Each year, it publishes its Quality of Living report to help companies determine compensation for employees sent to work abroad.

The cities are rated based on 39 factors, grouped into the following 10 categories:

- Social environment including politics and crime

- Economic environment

- Limitations on personal freedoms

- Medical and health considerations

- Schools and education

- Public services and transportation

- Recreation and entertainment

- Consumer goods

- Housing

- Natural environment and climate

Did your city make the 2018 list? Let's take a closer look: