John McAfee, the eccentric creator of eponymous antivirus computer software, and an entourage were detained by Dominican immigration authorities for entering the country with a cache of firearms and ammunition, the Public Ministry said on Thursday.
McAfee, who is on the run from US tax authorities, was detained after docking his yacht, named Great Mystery, in Puerto Plata on the Dominican Republic's northern coast.
The Public Ministry said it seized the weapons and ammunition found on the yacht.
McAfee posted on Twitter that he was leaving detention after "four days of confinement" and said that despite being treated well, he and his entourage, which included his wife, Janice McAfee, who was also detained, had "decided to move on."
McAfee recently told Reuters in an interview that he could help Cuba evade the US government too - by launching a cryptocurrency that defeats a US trade embargo.
His past includes fleeing Belize where he lived for several years after police sought him for questioning in the 2012 murder of a neighbor, meeting his wife when she solicited him as a prostitute while he was on the run and saying on Twitter last year that he had fathered 47 children.