In 99 BC, Sima Qian got involved in the Li Ling Affair. He was punished and sent to prison. Sima Qian would be sentenced to death if he could not pay a fine or accept the terrible punishment - castration. With the fact that Sima Qian did not have enough money to pay the fine and he hoped to finish writing the Records of the Grand Historian, he accepted the castration. Sima Qian finally spent 19 years to write that book.