The present invention relates to a pharmaceutical composition for its use in the prophylactic treatment in a patient against an intracellular pathogen, said composition comprising a solid nanoparticle comprising a cationic-polysaccharide solid core, said core being porous and loaded with at least an anionic phospholipid and at least an antigen coming obtained from said pathogen.