The main purpose of this legislation, known as the "No Invading Allies Act," is to prevent the United States Armed Forces from invading or seizing territory from Canada, Panama, or Greenland without proper authorization. This means that the President cannot order such military actions unless Congress has declared war, provided specific authorization, or there is a national emergency due to an attack on the U.S. or its forces.