Disclosed is a pharmaceutical composition comprising pitavastatin, or its salt or ester and MgO, of which the aqueous solution or dispersion has pH of from 10 to 10.8. The composition has good time-dependent stability and has no change in its outward appearance even after having been stored long.