WASHINGTON  President Barack Obama came ready Monday for a fighting finish, deriding Mitt Romney as reckless and overmatched in world affairs. Instead he found a subdued challenger who was eager to agree and determined to show he was not a warmonger.

Romney starkly moderated his tone and his approach in the closing debate. Playing it safe, he tried not to unnerve undecided voters who are wary of another U.S.-led war, or to upend a race that remains remarkably tight with two weeks to go.

No moment was more telling than when Romney had a clear opening to respond to Obama’s lecture that he was wrong and irresponsible on foreign affairs. He responded by giving his five-point plan for fixing the economy, leading to a bizarre exchange that took the debate wildly off topic.

It showed how much the commander in chief was in his comfort zone, where the challenger regretted that he was not in his.

The last debate turned into a mirror of the first one, when Romney had been the aggressor and Obama was intent not to fiercely challenge him. Even in trying to outline differences with Obama, Romney often started by agreeing with him. Suddenly, it was Romney the Republican who was talking about supporting economies abroad, while Obama the Democrat warned against nation-building.

From drones to Afghanistan to Syria, Romney and Obama spoke in agreement on goals, if not strategy.

The president’s biggest vulnerability — last month’s deadly assault on the U.S. Consulate in Libya, and all the unanswered questions that surround it — barely surfaced. Romney seemed to pass on the opportunity to assail Obama’s leadership and shifting messages on the attack.

Obama accomplished portraying himself as a world leader, facing a former governor who he said had offered positions that sent a mixed, and unsettling, message to allies and the American people.

He did so at times mockingly, but faced little fire in return.

“I know you haven’t been in a position to actually execute foreign policy, but every time you’ve offered an opinion, you’ve been wrong,” Obama told Romney.

He needled Romney the businessman for complaining that today’s Navy is smaller now than at any time since 1917, trying to hold Romney up as ignorant and unfit for the job.

“Well, governor, we also have fewer horses and bayonets because the nature of our military’s changed. We have these things called aircraft carriers, where planes land on them.”

Romney’s clearest points were to try to turn Obama’s most aggressive moments against him, and to outline a more comprehensive strategy for combatting the extremism that has roiled the Middle East and North Africa. Even then, his tone stood out. Politely.

“Well, of course I don’t concur with what the president said about my own record and the things that I’ve said,” he said. “They don’t happen to be accurate. ... Attacking me is not an agenda.”

With the race extremely tight and several states hanging in the balance, Romney sought to show he was reassuring, poised and in essence, presidential.

Yet he seemed to lose some of the edge that gave his campaign a bump in the first debate.

Trying to capitalize on the mood of voters, Obama has campaigned as the leader who ends the wars, not the guy who begins new ones. Romney tried to combat that by saying, for example, that he would not get the United States involved militarily in Syria even though he wants to find a way to arm the opposition.

Yet millions of viewers at home were often left to discern exactly how much Romney and Obama differ in a world of diplomacy that is enormously difficult and nuanced.

Before the debate, Romney aides said they believed viewers would, above all, be looking for Romney to demonstrate leadership and confidence. His answers often appeared driven to show he understand the regions, players and challenges at play instead of undermining the president’s positions on them.

The moderate Romney was dominant.

On Afghanistan, for example, Romney said he also would bring troops home by 2014. Often, though, Romney would agree in principle before saying he would have executed differently.

Romney congratulated the president on killing Osama bin Laden, for example, but then said, “We can’t kill our way out of this mess.” He agreed that sanctions were hurting Iran, but then said he would have initiated them sooner than Obama did. Romney also said he agreed with Obama’s decision to stop supporting Egyptian leader Hosni Mubarak — “I supported (Obama’s) action there” — but said he would have been more “aggressive” in trying to encourage democracy.

After a whole year in which foreign affairs has been the undercard of the campaign fight, it got its moment with the stakes right where they should be — high.

The presidency is about the world even during inward-looking times. Currency standoffs with China, nuclear showdowns with Iran and military tensions around the globe affect the economy and security of the United States.

The debate season ended with Romney looking like he wanted to get off the stage and back on the economy. That, ultimately, is where this election will be settled.