The present invention discloses 23-hydroxyl-betulinic acid derivatives, including 3-oxo-23-hydroxyl-betulinic acid, 3-oxo-23-hydroxyl-dihydrobetulinic acid, and 23-hydroxyl-dihydrobetulinic acid. The present invention also discloses the preparation methods thereof and medical applications as anti-tumor and anti-HIV agents.