Mexico has said US military would not be entering its territory following reports that President Donald Trump had directed the Pentagon to target Latin American drug cartels.

"The United States is not going to come to Mexico with the military," President Claudia Sheinbaum said on Friday. "We co-operate, we collaborate, but there is not going to be an invasion. That is ruled out, absolutely ruled out."

The New York Times reported on Friday that Trump had secretly signed a directive to begin using military force on foreign soil.

In a statement to the BBC, the White House did not address the directive but said that Trump's "top priority is protecting the homeland".

The reported directive appears to follow an executive order signed by Trump earlier this year formally designating eight drug cartels as terrorist entities - six of which are Mexican.