The United States makes an excellent invader and a dreadful occupier. One exception might be the Philippines in part as the US left the recipe for spaghetti sauce with hot dog slices and the English language. Otherwise, their track record is rather dismal.
In 1823, President James Monroe promulgated his “Monroe Doctrine” that any intervention in the political affairs of the Americas by foreign powers is a potentially hostile act against the US. You might think that Central and South America having lived under the yoke of European colonialism would have then and would continue to welcome Uncle Sam protecting their interests.
In late 2001, the United States invaded Afghanistan and ousted the Taliban government. After 20 years of “occupation,” the last of the US military forces withdrew on August 30, 2021, abandoning the Afghan National Army and since then the US has suspended operations of its Embassy in Kabul.