Farris Hassan, of Fort Lauderdale, had been under the care of the U.S. Embassy after being on his own in Iraq for several days.
"I am very pleased to announce that the young American citizen who has been in Iraq the past few days has now safely departed Baghdad, and this young American is now on his way back home to his family in the United States," Consul General Richard B. Hermann said.
"I want to have him in my arms, I want to hug him and thank God he's OK," Hassan's mother, Shatha Atiya, said on CBS News' The Early Show.
Hermann reiterated warnings by the State Department and embassy against traveling to Iraq and said Americans in Iraq should register their presence. Forty American citizens have been kidnapped since the war started in March 2003, of which 10 have been killed, a U.S. official said. About 15 remain missing.
Hassan, a junior at Pine Crest School, a prep academy of about 700 students in Fort Lauderdale, recently studied immersion journalism — a writer who lives the life of his subject in order to better understand it. But once he made his trip known to the Associated Press,
The teenager, whose parents were born in Iraq but have lived in the United States for about 35 years, says he wanted to travel to Baghdad to better understand what Iraqis are living through.
"I thought I'd go the extra mile for that, or rather, a few thousand miles," he said.
Skipping a week of school, he left the country on Dec. 11, telling only two high school friends of his plans. His travels took him to Kuwait and Lebanon before he arrived in Iraq on Christmas Day.
Hassan's mother said she offered to take her son to Iraq later, when tensions eased, but he was not satisfied. He left without telling her, and sent an e-mail after his departure, Atiya said.
The teen traveled to Kuwait, where a taxi dropped him in the desert at the Iraq border, but he could not cross there because of tightened security ahead of the Iraqi parliamentary elections on Dec. 15. He went to Beirut, Lebanon, to stay with family friends, and flew from there to Baghdad.
Hassan spoke to The Associated Press early Friday, several hours before the embassy announcement, and he was still under the impression that he would be following his personal travel itinerary, which had him leaving the country by himself on Sunday.
He hadn't even been aware that the story of his perilous travels was published around the world — or that his mother was being interviewed on television.
"I don't have any Internet access here in the Green Zone, so I have no idea what's going on," he said.
Given his heritage, Hassan could almost pass as Iraqi. His father's background helped him secure an entry visa, and native Arabs would see in his face Iraqi features and a familiar skin tone. His wispy beard was meant to help him blend in.
But underneath that Mideast veneer was a full-blooded American teen, a born-and-bred Floridian sporting white Nike tennis shoes and trendy jeans. And as soon as the lanky, 6-foot teenager opened his mouth — he speaks no Arabic — his true nationality would have betrayed him.
Traveling on his own in a land where insurgents and jihadists have kidnapped more than 400 foreigners, killing at least 39 of them, Hassan walked straight into a death zone. On Monday, his first full day in Iraq, six vehicle bombs exploded in Baghdad, killing five people and wounding more than 40.