Diamond Platnumz had the ban slapped on him by Basata, a government body, after he sang a song called Mwanza which contains the Swahili word for "horny" in the lyrics.
The 29-year-old performed the song in the port city of Mwanza on the shores of Lake Victoria on Sunday, December 16.
The song, and a video which included "lascivious" dance moves, was banned by Basata last month and news of the artist's flouting of the ban soon got back to them in their headquarters in the capital Dar es Salaam.
Diamond Platnumz and Rayvanny, who also features in the song, have been banned from performing live anywhere in the country but it remains to be seen whether they will abide by the injunction.
Tanzanian hip hop, known as "bongo flava", has become hugely popular in the last 20 years.
Diamond Platnumz — real name Naseeb Abdul Juma — has 5.7 million followers on Instagram.
His songs are mainly performed in Swahili — a language spoken widely across east Africa — but he is also popular in Nigeria and South Africa.
Many of his songs are popular ringtones in Africa, where the mobile phone market is huge, but earlier this year he brought out his debut album, A Boy From Tandale.
Tanzanian newspapers and websites cannot get enough of him and his love life — involving Ugandan-born socialite Zari Hassan, the mother of two of his children, and model Hamisa Mobetto, who has a son by him.
Recently an audio recording appeared of Hamisa discussing with a witch doctor how she could keep hold of her womanising lover.