As he vaulted into national acclaim with his 2004 Democratic convention speech, Barack Obama directly took on the assumption that his party should cede religious voters to the Republicans.
"We worship an awesome God in the blue states," he said, pointedly adopting words from a song familiar to churchgoers, particularly younger ones.
The four-year effort by Obama, who is Christian, to narrow the gap between Democratic and Republican support among religious voters paid off last week when he won the race for the White House.
Exit polls showed the dramatic effect: Obama won 43% of voters who said they attend church weekly, eight percentage points higher than 2004 Democratic nominee John F. Kerry. Among occasional worshipers, Obama won 57%, 11 percentage points higher than Kerry, according to the National Election Pool exit survey.
When looking at how members of different faiths voted, the movement among Catholics is striking. They sided 52% to 47% with President Bush in 2004. But this year, they went 54% to 45% for Obama. That means Obama had more support among Catholics than did Kerry, himself a Catholic, by seven percentage points.
"Obama did better than Kerry among pretty much every religious group," said Greg Smith, a research fellow at the Pew Forum on Religion & Public Life who analyzed the poll results.
Even among voters who describe themselves as born-again Christians or evangelicals, a group that tends to vote Republican, Obama improved on Kerry's standing -- although he came in a distant second to GOP nominee John McCain. Kerry had won 21% of evangelical voters; Obama won 26%.
The shift by religious voters may have resulted partly from changes in the electorate -- voter participation by blacks and Latinos grew, and both groups tend to be regular churchgoers. Yet there is no doubt that secular voters were more supportive of Obama than religious ones, according to the exit poll.
The Obama campaign, however, made sure to court religious voters and took advantage of his connections to influential Christian leaders.
Nearly two years ago, when voters knew little about him, the Illinois senator stood alongside nationally known author and Pastor Rick Warren at Saddleback Church in Lake Forest for a televised AIDS conference. Earlier, Obama had asked Warren to review a chapter of his book "The Audacity of Hope."