One purpose of the present invention is to provide a pharmaceutical composition that offers excellent solubility in water provides a reasonable range of gelling speeds for gelling agents and is useful as a medical material for preventing adhesion. Another purpose of the present invention is to provide a pharmaceutical composition whereby an excellent hemostatic effect can be achieved. A solid pharmaceutical composition is prepared containing: (A) a gelling agent (B) a salt of a divalent metal and at least one species of acid selected from the group consisting of organic acids and inorganic acids and (C) polyethylene glycol.