A devastating 7.1 magnitude earthquake collapsed some buildings and damaged many others in and around Mexico City on Tuesday on the anniversary of the 1985 earthquake there which left thousands dead.

The U.S. Geological Survey said Tuesday’s earthquake was centered near the Puebla state town of Raboso, about 76 miles southeast of Mexico City. Millions of people were without power and at least 119 deaths were confirmed in the first hours after the quake and that number was expected to climb.

Photos: Meet the sniff dogs rescuing earthquake survivors in Mexico

Mexican President Enrique Peña Nieto happened to be en route to Oaxaca where a deadly 8.1-magnitude quake struck a little more than one week ago. Peña Nieto immediately returned to Mexico City and urged residents to stay out of the streets to give access to first responders, and to shut off gas lines that before returning to their homes.

https://twitter.com/EPN/status/910229375886532609

The Associated Press captured this image after thousands of workers fled their office buildings onto the Paseo de La Reforma in the heart of Mexico City.

People fill Paseo de la Reforma after evacuating from their offices after an earthquake in Mexico City, Tuesday, Sept. 19, 2017. (AP Photo/Anita Baca)

The mayor of Mexico City said there were reports of people trapped in collapsed buildings. Then airport in Mexico City announced a shutdown shortly after.

https://twitter.com/AICM_mx/status/910217815038316545

Schools were also canceled in Mexico City and the states of Puebla and Guerrero. Across social media, news outlets and citizens shared videos of buildings shaking or collapsing.

https://twitter.com/BenjaminMijares/status/910253026308276224

https://twitter.com/tv4guanajuato/status/910234705118801921

https://www.instagram.com/p/BZO4XaHHkXU/

https://twitter.com/gooz25/status/910207183723393024

https://twitter.com/Milenio/status/910231365915901957

https://twitter.com/C5N/status/910214150760144896

They also shared images of the damage afterward.

https://twitter.com/AztecaNoticias/status/910227726761644034

https://twitter.com/PoliciaFedMx/status/910233688851599361

https://twitter.com/Enrique_Acevedo/status/910213438248538112

https://twitter.com/katelinthicum/status/910217532283404288

https://twitter.com/reformaciudad/status/910235260574748673

https://twitter.com/AlfredoLecona/status/910251839949381632

https://twitter.com/costa1360/status/910261439021047808

For ongoing updates from the Los Angeles Times, go here.

Email: abby.hamblin@sduniontribune.com

Twitter: @abbyhamblin