David Petraeus hands over Afghanistan command
Gen David Petraeus, US commander of Nato troops in Afghanistan, has handed responsibility for the military campaign there to his successor, Gen John Allen.
Gen Petraeus, who is returning to the US to run the CIA, oversaw last year's surge of US troops to Afghanistan.
The transition comes hours after a close aide to Afghan President Hamid Karzai died in an attack in Kabul.
Earlier on Sunday, Nato handed control of Bamiyan province to local forces.
It is the first of seven areas to be passed to Afghan security forces under a plan announced by President Karzai in March.
The handover from Nato to Afghan forces is seen as a critical step in a transition of power before foreign troops end combat operations in 2014.'Tough days ahead'
At the change of command ceremony in the Afghan capital, Kabul, David Petraeus, expressed his "profound and lasting" gratitude to Afghan and Isaf troops for their service.
Gen David Petraeus has been in charge at a critical period in Afghanistan, a year in which an extra 33,000 surge troops were brought in as part of a Nato plan to push into Taliban strongholds in the south.
That strategy has only been partly successful. While insurgent attacks are lower than in previous years, the number of casualties has increased making the first six months of this year the most violent in a decade, according to recently released UN figures.
And while it is acknowledged that the Taliban have been hit hard in the south, eastern Afghanistan is still a problem area with a large presence of Taliban and al-Qaeda fighters.
Insurgents have also shown they have the capacity to launch a number of spectacular raids like the one last month on a luxury hotel in Kabul.
He also addressed the people of Afghanistan saying: "You have shown enemies of Afghanistan that you are willing and able to resist a campaign of violence and intimidation."
His successor reinforced his commitment to support the security transition to Afghan forces.
"'There will be tough days ahead and I have no illusions about the challenges we will face together," Gen John Allen told those assembled at the ceremony.
The US military's top officer, Adm Mike Mullen, was also present at the ceremony. Gen Petraeus, who has served with the US Army for 37 years, is credited with turning around the war in Iraq after former President George W Bush tasked him with managing a surge of troops there in 2007.
Gen Petraeus took charge in Afghanistan last year at a critical moment and managed the deployment of more than 30,000 US troops to fight the Taliban. US troops are set to begin the first phase of their withdrawal in the coming months.
The ceremony was conducted as Nato announced the deaths of three coalition soldiers in eastern Afghanistan after a bomb attack.
And the killing of a key presidential aide to President Karzai in the Afghan capital also highlights the challenges that lie ahead, says the BBC's Sanjoy Majumder in Kabul. Less than a week earlier, Mr Karzai's half-brother, Ahmed Wali Karzai, was assassinated in Kandahar.Shoot-out in Kabul
Jan Mohammad Khan was killed in an attack on his home in Kabul on Sunday.
Lawmaker Hasham Watanwal also died in the attack, said police, as gunmen stormed the house in the western Karti Char district of the city.
A shoot-out with security forces in the area continued for some time afterwards, police said. One report said the attackers had been wearing suicide vests.
GEN JOHN ALLEN
- Graduated from the US Naval Academy in 1976, but went on to further degrees in national security and strategic intelligence
- Served in the Caribbean, the Balkans and was deployed to Iraq in 2006
- Between 2008 and 2011 he was deputy commander at US Central Command
- Promoted to the rank of four- star general shortly before assuming command of troops in Afghanistan
The question many are asking, according to our correspondent in Kabul, is that if key figures such as Ahmed Wali Karzai and Jan Mohammed Khan can be killed in their own homes, how can ordinary Afghans be protected against insurgents?
Though a close ally of the president, Mr Khan - a former governor of Uruzgan province - was also a controversial figure.
Correspondents say that despite rising casualty numbers, security has improved in a number of areas of the country following a surge of extra American troops and tens of thousands of new Afghan police and soldiers.
However the quality of Afghan police and soldiers is patchy and correspondents warn of fears that they will be unable to withstand a renewed summer offensive from the Taliban.