Answer:
When Shi Huangdi died, China had a civil war and was worsened by floods and droughts. In 207 BCE, his son was killed and the dynasty collapsed completely. Troubles kept coming until 202 BCE, when Gaozu, a "petty" official, became a general and reunited China after the Han Dynasty.
For more info check out this website: https://courses.lumenlearning.com/boundless-worldhistory/chapter/the-qin-dynasty/#:~:text=Upon%20the%20First%20Emperor's%20death,China%20under%20the%20Han%20Dynasty.
hope this helped! :)