The Chongzhen Emperor died by suicide during a peasant rebellion.

Zhu Youjian, the Chongzhen Emperor, was the last emperor of the Ming Dynasty.

Source