Manifest destiny
A belief in Manifest Destiny helped convince Americans to support the war.  It told them it was all right to fight, kill, and take land from Mexicans or other non-Americans.  This was all right because they were only doing what God wanted.  They were doing what they were destined to do.