In 96 BC, on his release from prison, Sima chose to live on as a palace eunuch to complete his histories, rather than commit suicide as was expected of a gentleman-scholar. As Sima Qian himself explained in his Letter to Ren An:
“ If even the lowest slave and scullion maid can bear to commit suicide, why should not one like myself be able to do what has to be done? But the reason I have not refused to bear these ills and have continued to live, dwelling in vileness and disgrace without taking my leave, is that I grieve that I have things in my heart which I have not been able to express fully, and I am shamed to think that after I am gone my writings will not be known to posterity. Too numerous to record are the men of ancient times who were rich and noble and whose names have yet vanished away. It is only those who were masterful and sure, the truly extraordinary men, who are still remembered. ... I too have ventured not to be modest but have entrusted myself to my useless writings. I have gathered up and brought together the old traditions of the world which were scattered and lost. I have examined the deeds and events of the past and investigated the principles behind their success and failure, their rise and decay, in one hundred and thirty chapters. I wished to examine into all that concerns heaven and man, to penetrate the changes of the past and present, completing all as the work of one family. But before I had finished my rough manuscript, I met with this calamity. It is because I regretted that it had not been completed that I submitted to the extreme penalty without rancor. When I have truly completed this work, I shall deposit it in the Famous Mountain. If it may be handed down to men who will appreciate it, and penetrate to the villages and great cities, then though I should suffer a thousand mutilations, what regret should I have?