What did the domino theory have to do with the Vietnam War?

The Americans were essentially worried that if Vietnam fell to the communists, then so would other Southeast Asian countries, just like a line of dominoes. The USA then stepped in to prevent South Vietnam from falling to the north.