Chief prosecutor Abbas Jafari Dolatabadi said the man led "a corruption gang" which held parties with drugs and alcohol, and where women were "sexually harassed".
"The head of this corruption gang has been sentenced to execution and the case has been sent for appeal to the supreme court," he said, according to the judiciary-linked Mizan news agency.
Dolatabadi mentioned another case in which six people had been arrested for downloading "obscene" Hollywood films and dubbing them into Persian.
"The gang's website was the largest download centre for Hollywood films and series, and in the past three years they have published 18,000 dubbed films and series, many of which were obscene and pornographic," said Dolatabadi.