Security handed back to Afghan troops
Security has been handed back to Afghanistan for the first time since 2001.
From Wednesday, Afghan troops will officially take over from Nato forces in the country.
British and American troops have been in Afghanistan since 2001, when they were sent to fight the Taliban.
Although security has been handed over, British troops will stay in the country until the end of 2014 to provide military back-up when it's needed.
Speaking at a ceremony in the capital Kabul, Afghan President Hamid Karzai called it "a great day" for the people of Afghanistan.
But the ceremony came just after a bomb attack in western Kabul, which killed three people.
Afghan army: still some doubts
Nato troops have been working with Afghan soldiers and training them so they are ready to take over from them.
But experts say that while the best Afghan soldiers in the army are ready for the job ahead, other soldiers aren't.