RNA is encapsulated within a liposome for in vivo delivery. The RNA encodes a polypeptide of interest, such as an immunogen for immunisation purposes. The liposome includes at least one compound selected from the group consisting of compounds of formula (I) and formula (XI).