Mos Def has been allowed out of South Africa, 11 months after getting arrested for using the wrong passport.
The rapper, who’s also known as Yasiin Bey, has been living in the country since 2013 but was stopped from leaving in January.
Officials also accused him and some members of his family of overstaying on their visas.
They’re now letting him fly out but say he’ll be declared an "undesirable person" and not allowed back.
Mos Def released his first album, Black on Both Sides, in 1999.
Alongside his solo career, he has since featured on records by Kanye West, The Black Keys and Gorillaz.
He’s also an actor. You might have seen him in Dexter, The Italian Job or The Hitchhiker’s Guide to the Galaxy.
He was using something called a World Passport, a type of passport that doesn’t specify which country you are from.
According to the people who make them, the World Government of World Citizens: "the very acceptance of a national passport is the mark of the slave, serf or subject".
They claim that their alternative has been accepted for 60 years, by more than 160 countries, on a "case-by-case basis".
Mos Def, though, was arrested when he tried to use his earlier this year. But South Africa’s Home Affairs department says he has now apologised.
In a statement, it added that "based on his apology, and the confirmation that he will depart... using a valid passport, the department will withdraw the charges against him".
But it isn’t all good news for Mos Def. The statement went on to say, "for his conduct, Mr Smith Bey [Mos Def] will be declared an undesirable person... He will therefore not qualify for a port of entry visa or admission to the republic."
He can apply for a waiver in the future though.