Ozone levels were almost twice the acceptable limit.

By Katie ReillyKatie Reilly / Time.com and Time.com
March 16, 2016
Getty Images

This story originally appeared on Time.com.

Older and more heavily polluting vehicles were required to stay off the road in Mexico City on Tuesday in an attempt to improve air quality after the government declared an air pollution alert on Monday, its first in 11 years.

Related: Mexico City Travel Guide

Ozone levels in the city reached nearly twice the acceptable limit, the Associated Press reported on Monday night.

A recent court order relaxed a rule that had discouraged the use of cars more than eight years old. Environmental activists have argued that changing the rule contributed to more cars on the road and higher smog levels, the AP reported.

Officials recommended that residents stay indoors and limit outdoor exercise while the air pollution alert is in effect.