To be sure, a McCain presidency would look far different than an Obama presidency. The two candidates have starkly different approaches to healthcare, Social Security and Supreme Court nominations, among other issues. But this makes it all the more surprising that in many areas the rivals are more or less aligned.
Initially, the war in Iraq was one of the hot-button disagreements. Obama made his early opposition to the war a cornerstone of his candidacy; McCain's calling card has been his support for the war and last year's troop increase. But in the course of the campaign, their differences have narrowed over the choices facing the next president.
McCain has repeatedly opposed setting timetables for withdrawing U.S. forces, but more recently he has said he wants most troops out by 2013 -- the first time he has mentioned a specific date.
Obama has repeatedly said he would withdraw troops within 16 months of taking office, but he has hedged in ways that would give him wide latitude: He says he will listen to military commanders, will react to events on the ground and may "refine" his plan after his upcoming trip to Iraq.
In other areas of policy:
Both McCain and Obama favor combating global warming with a "cap and trade" system. Under this plan, the government would set limits on emissions. Companies and others who emit gases below those limits would be able to sell credits to those unable to meet the targets.
On the future of nuclear power, the candidates are in the same neighborhood. McCain has laid out a plan to build 45 nuclear power plants. Obama has offered more general support, along with the caveat that a nuclear power expansion be coupled with a resolution on how to safely dispose of waste.
Both have parted ways with Bush and advocated stepped-up negotiations with Russia and other countries to reduce the world's nuclear arsenal.
Both twice voted for legislation -- which Bush twice vetoed -- that would have eased federal restrictions on human embryonic stem-cell research.
Obama voted in the Senate on Wednesday for a bill, bitterly opposed by many liberals, to expand the government's eavesdropping authority and to protect telephone companies that cooperate with the program from being sued. McCain was not present for the vote but has said he supported the bill.
Both embrace the idea of continuing Bush's faith-based initiative, a program that funnels federal money to religious charities for social services.