The major cause for the United States going to war in 1812 was:

British interference with United States trade.

Spanish control of the Louisiana territory.

James Madison's need to control world affairs.

The canceling of Orders in Council by the British.