BAGRAM AIR FIELD, Afghanistan (AP) - On a swift, secretive trip to the war zone, President Barack Obama declared Tuesday night that after years of sacrifice the U.S. combat role in Afghanistan is winding down just as it has already ended in Iraq.
"We can see the light of a new day on the horizon," he said on the anniversary of Osama bin Laden's death and in the midst of his own re-election campaign.
"Our goal is to destroy al-Qaida, and we are on a path to do exactly that," Obama said in an unusual speech to America broadcast from an air base halfway around the world.
President Barack Obama and Afghan President Hamid Karzai sign a strategic partnership agreement at the presidential palace in Kabul, Afghanistan, Wednesday.
He spoke after signing an agreement with Afghan President Hamid Karzai setting post-war promises and expectations.
With two armored troop carriers as a backdrop, Obama made his remarks in the midst of his endeavor to win re-election as president and commander in chief.
The president landed in Bagram in darkness, and his helicopter roared to Kabul for the meeting with Karzai, under close guard, with only the outlines of the nearby mountains visible. Later, back at the base, he was surrounded by U.S. troops, shaking every hand. He ended his lightning visit with the speech delivered straight to the television camera - and the voters he was trying to reach back home.
"This time of war began in Afghanistan," he said. "With faith in each other, and our eyes fixed on the future, let us finish the work at hand and forge a just and lasting peace."
Earlier, he delivered a similarly upbeat message to the troops. Noting their sacrifice, he said, "There's a light on the horizon."
It was Obama's fourth trip to Afghanistan, his third as commander in chief. He was about seven hours on the ground in all. He also visited troops at a hospital at the Bagram base, awarding 10 Purple Hearts.
The written agreement that he and Karzai signed is to cover the decade after the planned final withdrawal of U.S. combat troops in 2014. Obama said American forces will be involved in counter-terrorism and training of the Afghan military. "But we will not build permanent bases in this country, nor will we be patrolling its cities and mountains."
In his speech to the nation, Obama said, "I recognize many Americans are tired of war."
He said that last year, "we removed 10,000 U.S. troops from Afghanistan. Another 23,000 will leave by the end of the summer. After that, reductions will continue at a steady pace, with more of our troops coming home. And as our coalition agreed, by the end of 2014 the Afghans will be fully responsible for the security of their country."
Without mentioning the political campaign back home, Obama claimed that on his watch the fortunes of the terrorists have suffered mightily.
Over the past three years "the tide has turned. We broke the Taliban's momentum. We've built strong Afghan security forces. We devastated al-Qaida's leadership, taking out over 20 of their top 30 leaders," he said.
"And one year ago, from a base here in Afghanistan, our troops launched the operation that killed Osama bin laden."
He spoke for less than 15 minutes, beginning at 4 a.m. in Afghanistan, 7:30 p.m. on the East Coast of the United States. Minutes later, Air Force One was on its way back to Washington.
According to the Pentagon, more than 1,800 American troops have been killed across more than a decade of war in Afghanistan.
Some 88,000 remain stationed there.
Obama flew to the site of America's longest war not only as commander in chief but also as an incumbent president in the early stages of a tough re-election campaign. Nor were the two roles completely distinct.
His presence was a reminder that since taking office in 2009, Obama has ended the war in Iraq and moved to create an orderly end for the U.S. combat role in Afghanistan.
In the political realm, he and Vice President Joe Biden have marked the one-year anniversary of bin Laden's death by questioning whether Republican challenger Mitt Romney would have ordered the daring raid that penetrated the terrorist leader's Pakistan hide-out. Republicans are accusing the president of politicizing the event, and Romney is insisting that he would indeed have ordered U.S. forces into action.
Obama slipped out of Washington, flew all night to Bagram, then shuttled by helicopter under a moonlight sky to Kabul to help two strained allies try to turn from war to peace -or at a least stable end to the war. He was greeted by U.S. ambassador Ryan Crocker.
The deal does not commit the United States to any specific troop presence or spending. But it does allow the U.S. to potentially keep troops in Afghanistan after the war ends for two specific purposes: continued training of Afghan forces and targeted operations against al-Qaida. The terror group is present in neighboring Pakistan but has only a nominal presence inside Afghanistan.
Obama said the agreement was meant in part to pay tribute to the U.S. troops who have died in Afghanistan since the war began.