Mexico has withdrawn its offer of aid to US victims of Hurricane Harvey after a 8.1 magnitude earthquake hit the southern states of Oaxaca and Chiapas, killing 96 people.

A statement released by Mexico’s Foreign Ministry said the aid would now be redirected to help those affected by the devastating earthquake and Hurricane Katia that wreaked havoc on home soil.

As many as 5,000 homes were destroyed in Chiapas, with authorities fearing the damage in Oaxaca could be even worse.

"Given this situation, the Mexican government will channel all available logistical support to the families and communities that have been affected in Mexico and has informed the Texas and US governments that, unfortunately, on this occasion, it won't be possible to provide the assistance originally offered to Texas in late August in the wake of Hurricane Harvey," the foreign ministry said in a statement.

Mexico had pledged to offer food, generators and medical aid to Texas “as good neighbours should always do in trying times.”

Mexico earthquake - in pictures Show all 10 1 /10 Mexico earthquake - in pictures Mexico earthquake - in pictures Damage to a building in Oaxaca following the strong earthquake (magnitude 8.4 on the open Richter scale) that violently shook Mexico EPA/Mario Arturo Martinez Mexico earthquake - in pictures A handout photo made available by the Mexican government show a collapsed building in Matias Romero, Oaxaca EPA Mexico earthquake - in pictures Patients and doctors of a hospital in Villahermosa remain in the open after the earthquake hit the area EPA/STR Mexico earthquake - in pictures Patients and doctors wait to be allowed back in the hospital EPA/STR Mexico earthquake - in pictures Members of the Mexican army survey the damage in the Port of Veracuz Mexico earthquake - in pictures Debris from a collapsed wall sits in Oaxaca AP Mexico earthquake - in pictures Damage on the floor in an entrance of the Benito Juarez international airport in Mexico City on 8 September Reuters/Claudia Daut Mexico earthquake - in pictures People gather on a street after an earthquake hit Mexico City Reuters/Claudia Daut Mexico earthquake - in pictures A man in a bathrobe in downtown Mexico City during the earthquake Luis Perez/AFP Mexico earthquake - in pictures People gather outside a nightclub in downtown Mexico City

The Mexican Red Cross also sent 33 volunteers to help the relief effort in Houston.

But the US President never formally accepted the offer and continued to attack Mexico on Twitter, calling the country "one of the highest crime nations in the world."

Mr Trump failed to offer condolences to the country after the earthquake and the separate hurricane, sparking heavy condemnation from around the world.

Hours after rescinding the aid offer, Mexico's Foreign Secretary Luis Videgaray reportedly received a phone call from US Secretary of State Rex Tillerson.