An object of the present invention is to provide a pharmaceutical composition that has excellent water solubility, contains a gelling agent that has a gelation rate in suitable ranges, and is useful as an adhesion preventing biomedical material. Another object of the present invention is to provide a pharmaceutical composition that can demonstrate an excellent hemostatic effect. A solid pharmaceutical composition is prepared from (A) a gelling agent, (B) a salt of a divalent metal and at least one selected from the group consisting of organic acids and inorganic acids, and (C) polyethylene glycol.