A Chinese man has been sentenced to death for leaking more than 150,000 classified documents to an unidentified foreign power, state television said Tuesday, offering unusual details of a kind of case rarely mentioned in public.

The man, a computer technician from Sichuan named as Huang Yu, worked for a government department which handled state secrets, but he was a bad employee and was sacked, the report said.

Filled with anger, he messaged a "foreign spy organization" on the Internet and offered to sell documents he had obtained while working for his former employer, who gladly took him up on his offer and so began their relationship, it added.