It is an object of the present invention to provide a pharmaceutical composition which can suppress a reduction in the content of an active ingredient caused by oxidation or decomposition of the rapamycin or a derivative thereof, can ensure long-term stability, and has high safety. The present invention provides a pharmaceutical composition comprising (A) rapamycin or a derivative thereof and (B) trehalose, and a method for producing a pharmaceutical composition comprising rapamycin or a derivative thereof, which comprises adding a solution containing rapamycin or a derivative thereof to sugars having a critical relative humidity at 25°C of 95% or more.