He served one term in the US Senate before running for president and winning in 2008. Barack Obama before becoming president served in the US senate for less than 2 years and in the Illinois legislature. In both positions he was the most liberal person in the legislative body.