Compounds represented by formula (I):defined herein and salts thereof, and compounds represented by formula (II):defined herein and salts thereof, exhibit superior immunostimulatory effects, and are useful as vaccine adjuvants and in vaccines containing such a compound and an antigen.