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 porous cationic- polysaccharide solid core, loaded with at least an anionic phospholipid without being surrounded by any phospholipidic layer and at least an antigen obtained from said pathogen.