They were seen as swing states and essential for the Republican candidate to make an unlikely move to the White House.
Mr Obama also won what was seen as the risky state of Iowa.
Mr Obama and Mr McCain campaigned right up to Election Day, as a record number of American citizens from all 50 states cast their ballots.
Mr Obama also captured Michigan, Minnesota, Rhode Island, Wisconsin, Delaware, Maine, New Jersey, New Hampshire, New York, Maryland, Massachusetts, Connecticut, Vermont, Washington DC and Illinois.
Mr Obama, 47, son of a Kenyan and white mother from Kansas, will be the first black US president.
It will mark a milestone in US history 45 years after the height of the civil rights movement led by Martin Luther King.
Meanwhile in US Senate elections, the Democrats have regained control - an important step towards their goal of a so-called "super majority" in the three branches of the US government.
Author: Jo Amey




