Barack Obama, the US president, has pledged a "lasting commitment" to both Afghanistan and Pakistan after holding talks with both nations' leaders in Washington.
He said all three nations shared a common goal of dismantling, disrupting and defeating the al-Qaeda network, the Taliban and its allies and improving security in both countries.
"Our strategy reflects a fundamental truth, the future of Afghanistan, Pakistan and the US are linked," Obama said at a news conference in Washington on Wednesday, flanked by Hamid Karzai, the Afghan president, and Asif Ali Zardari, his Pakistani counterpart.
He praised both men as fully appreciating the "seriousness" of the current situation in the region.
However, he also cautioned that people should expect more violence and more setbacks.
Obama has pledged to deal with the situation in the two countries with a joint strategy that deploys about 20,000 more troops to Afghanistan to combat the rising threat from Taliban and al-Qaeda fighters and hand billions of dollars in aid to Pakistan.
Al Jazeera's Rob Reynolds in Washington says that Obama's pledges did not specify
In advance of their meeting with Obama, both Karzai and Zardari held talks with Hillary Clinton, the US secretary of state, against a backdrop of fears over the deteriorating security situation in both nations.
Pro-Taliban fighters have taken control of territory in large parts of Afghanistan and Pakistan, where they have pushed to within 100km of the capital, Islamabad.
"We know that each of your countries is struggling with the extremists who would destabilise and undermine democracy," Clinton said.
Zardari promised to aid the US and Afghanistan in the battle against al-Qaeda and Taliban fighters.
"We stand with our brother Karzai and the people of Afghanistan against this common threat, this menace, which I have called a cancer," Zardari said.
Karzai, describing Pakistan and Afghanistan as "conjoined twins", said: "Our suffering is shared."
Anthony Cordesman, a former senior intelligence analyst at the US defence department, told Al Jazeera the stakes are high for the US, and for Obama, in securing stability in the region.
"If you lose Afghanistan it essentially becomes a sanctuary for [Osama] Bin Laden, for extremist movements, a training ground [and] a centre of terrorism in the region basically throughout the world," he said.
"As far as Pakistan goes, the situation is even worse. It's a nuclear power, you have no idea where the weapons may end up, you see it potentially being used as a lever, a centre of power to put pressure on countries throughout the Islamic world and again as a centre of terrorism."
The meeting comes amid anger in Afghanistan over the deaths of more than 100 civilians, reportedly in a US raid.
Clinton said she deeply regretted the deaths and promised to try and avoid them in the future.
The summit aims to promote co-operation between the two neighbours, but has been overshadowed by US concerns about Pakistan's stability.
Richard Holbrooke, the US special envoy to Pakistan and Afghanistan, insisted on Tuesday that Pakistan was not a "failed state" and said Washington was committed to supporting the government in Islamabad.
"Pakistan's of such immense importance to the United States, strategically and politically, that our goal must be unambiguously to support and help stabilise a democratic Pakistan headed by its elected president, Asif Ali Zardari," he told congress.
Holbrooke also said that Pakistan must start to "show results" in its efforts to address the security situation along the border with Afghanistan.
"Pakistan must demonstrate its commitment to rooting out al-Qaeda and the violent extremists within its borders," he said.
Relations between Islamabad and Kabul have been strained over the security situation, with Afghan officials accusing elements within Pakistan's military and intelligence services of supporting the violence and doing little to stop fighters crossing the border.Here is another article on this from Fox News: CLICK HERE