He was a brilliant student and became the protégé of Wen Lin. His friends in Suzhou's scholarly circles included Shen Zhou, Wu Kuan (1436–1504) and Zhu Yunming. In 1498 Tang Yin came first in the provincial examinations in Nanjing, the second stage in the Imperial examination ladder. The following year he went to the capital to sit the national examinations, but he and his friend Xu Jing (?- 1507) were accused of bribing the servant of one of the chief examiners to give them the examination questions in advance. All parties were jailed, and Tang Yin returned to Suzhou in disgrace, his justifiably high hopes for a distinguished civil service career dashed forever.