Anti-virus software founder John McAfee has been released from detention in Guatemala and is heading to the US.
Guatemalan immigration officials have escorted Mr McAfee to Guatemala City airport.
Mr McAfee says he is going to catch a flight to Miami, Florida. He said: "I'm free, I'm going to America."
The 67-year-old was detained last week after he sneaked into Guatemala from neighbouring Belize, where police want to question him over the fatal shooting of a US expatriate who lived near his island home in November.
The escort to the airport, accompanied by a throng of journalists and two police trucks with sirens blaring, marked the last chapter for Mr McAfee's strange, month-long odyssey.
"McAfee entered the country illegally," immigration service spokesman Fernando Lucero said. "Guatemala is expelling him. Since his country of origin is the United States, Guatemala is expelling him to the United States."
In one of the most highly-publicised flights from police questioning since OJ Simpson led police on a televised car chase, Mr McAfee constantly blogged and spoke with reporters about his life on the lam.
Bystanders in Guatemala City stopped to stare at the passing police convoy and people at the airport massed around the immigration truck carrying Mr McAfee, straining to take pictures of him with their cell phones.
He suggested his week-long detention in Guatemala for entering the country clandestinely had taken its toll on him. "All I can tell you is I'm 10 years older, and I don't know what I'm doing. I'm just going to Miami," he said.
Mr McAfee was detained last week for immigration violations after he sneaked into Guatemala from neighbouring Belize, where authorities sought to question him about the murder of a neighbour.