The present invention provides a protopanoxadiol derivative of structural formula I or II, a preparation method and an application thereof. The present invention performs structural modification on protopanoxadiol, and obtains multiple novel compounds with unique structures. As confirmed in vivo pharmacological experiments, these compounds have stronger anti-depression activity, can be used as an active ingredient in preparing medicine for preventing or treating depression-type mental illness, and have wide use and development prospect,