A pharmaceutical formulation of a gastric proton pump inhibitor, with the exception of omeprazole, is disclosed. The formulation is in the form of microgranules insoluble in gastric fluid having improved stability over time. The formulation comprises several hydrophobic substances chosen in order to increase the stability of the active principle while obtaining the desired dissolution profile.