 John Kerry won the district in 2004 with 85.9% of the vote.Barack Obama swept the district in 2008 with 88.13% of the vote while John McCain received 9.87% of the vote, making it Obama's best and McCain's worst performance in California.The current 9th district is substantially more competitive, though it also favors the Democratic Party.