The main reason behind Emperor Qin Shi Huangdi's obsession with building the Terracotta Army was primarily:
c. Belief in the afterlife
The Terracotta Army was created to accompany the emperor in the afterlife, reflecting his belief in the continuation of life after death and the need for protection and service in the afterlife.