A pharmaceutical composition is described which includes diclofenac as an active ingredient. The pharmaceutical composition further includes a (meth)acrylic polymer which has a specific solubility and/or a particular functional group in one polymer component.