James Polk was President\n\nIt was allegedly caused by tensions developing from Texan expansions by US settlers, but really it was mostly a Manifest-Destiny style takeover of land.\n\nTechnically, we invaded them, and a skirmish happened, so we declared war and said we'd been invaded.