After watching Barack Obama's speech to the 2004 Democratic National Convention on television, DuBois decided to work for Obama, then a candidate for the U.S. Senate. Eventually, Obama hired him as a Senate aide. In 2008, DuBois was religious affairs director for the Obama presidential campaign.