A method for producing a drug substance of crystalline pitavastatin calciumexcellent in stability, is presented. In the production of a compound(pitavastatin calcium) represented by the formula (1): The water content isadjusted to a level of from 5 to 15%, and the crystal form is controlled to becrystal form A, thereby to obtain a drug substance excellent in stability.