Tanzanian rapper Emmanuel Elibariki, known as Nay wa Mitego, has been arrested for releasing a song deemed insulting to the government.
The song emerged last week and has been widely shared on social media.
One line in it asks: “Is there still freedom of expression in the country?” and refers to a “doctor” who can’t tolerate criticism.
Nay wa Mitego’s arrest comes days after President John Magufuli warned media to be careful about exercising freedom.
“Media owners, let me tell you: ‘Be careful. Watch it. If you think you have that kind of freedom – not to that extent,” Mr Magufuli said.
Police confirmed the arrest to local media, saying the rapper would be questioned “for releasing a song with words that malign the government”.
He was reportedly held at a hotel in Morogoro, about 190km (120 miles) from Tanzania’s commercial capital Dar es Salaam, to where he was being transferred.
Local media reports said Nay wa Mitego’s lawyer was due to file a request for bail.
Other lines in the song said: “Who are you now? Don’t you want to listen to advice? Don’t you want criticism?”
The lyric is addressed to someone he calls “a doctor specialising in lancing boils”.
The phrase “lancing boils” has been used repeatedly by Mr Magufuli to refer to people he deems obstructive.
Mr Magufuli, who came to power in 2015, presents himself as a no-nonsense man of the people, unafraid of sacking corrupt or incompetent officials.
Recent opinion polls have suggested he is popular, but critics accuse him of an impulsive style of governing and being intolerant of dissent.
Another line in Nay wa Mitego’s song goes: “I see you handed a club to a madman,” which has been interpreted as referring to an official appointed by the president who has been accused of heavy-handed behaviour.
The BBC‘s Sammy Awami in Dar es Salaam says the rapper is popular for his scathing lyrics, attacking not only the government but even his fellow artists.
On his social media accounts he uses the name “NayTrueboy”, saying he always speaks his mind and tells the truth.