A pharmaceutical composition for its use in the prophylactic treatment of a patient against an intracellular pathogen, said composition comprising a solid nanoparticle comprising a porous cationic-polysaccharide solid core, loaded with at least an anionic phospholipid, without said cationic-polysaccharide core being surrounded by any phospholipidic layer, and at least an antigen obtained from said pathogen.