Disclosed is a solid pharmaceutical composition comprising: (A) a gelling agent such as sodium alginate (B) a salt of a divalent metal such as calcium hydrogen phosphate dehydrate and at least one species of acid selected from the group consisting of organic acids and inorganic acids and (C) polyethylene glycol. The composition offers high water solubility, provides a reasonable range of gelling speeds for gelling agents, and is useful as a medical material for preventing organ and tissue adhesion during surgery on intra-abdominal organs and on tendons, nerves, and joints. Also disclosed is the use of the composition as a hemostatic agent to prevent bleeding during surgery.