Mexican President Andrés Manuel López Obrador on Thursday said his country was still committed to helping the United States address immigration, but noted that "it can’t go on forever." 

Speaking at a press conference, López Obrador said efforts must be drawn to the root problems in Central America that are causing people to emigrate. 

FILE: Honduran Alex Cortillo, left, and his stepbrother pull their suitcases to the border crossing into the U.S. to begin the asylum process, in Tijuana, Mexico.  (AP)

The matter came as the president sidestepped questions about the reinstatement of the U.S. "Remain in Mexico" policy. 

"We have taken it upon ourselves to help the U.S. government on the immigration issue, we are going to continue to do so," López Obrador said.

"We have tried to keep migrants in shelters, above all to protect minors, women," López Obrador said. "But this can't go on forever, we have to get to the bottom of the issue and that means investing in the development of poor countries."

REPUBLICAN AGS URGE GARLAND TO APPEAL RULING THAT DETERMINED ILLEGAL REENTRY LAW TO BE DISCRIMINATORY

Mexico, which is not legally bound to accept the U.S.’s "Remain in Mexico" policy, allowed non-Mexicans to be sent back under the administration of Donald Trump, but it’s not clear how long the government will allow that to resume.  

The U.S. Supreme Court refused Tuesday to block a lower-court ruling ordering the administration of President Biden to reinstate the Trump-era policy of forcing people to wait in Mexico for hearings on asylum claims. 

CLICK HERE TO GET THE FOX NEWS APP

It's not clear how many people will be affected by the Supreme Court ruling and how quickly. Under the lower court ruling, the administration must make a "good faith effort" to restart the program. 

The Associated Press contributed to this report