The purpose of the present invention is to provide a pharmaceutical composition that comprises a hyaluronic acid derivative represented by formula (1) in the description or a pharmaceutically acceptable salt thereof, a method for producing the same, and a method for inhibiting the formation of diclofenac lactam from a compound represented by formula (1). Provided is a method for inhibiting the formation of diclofenac lactam from a compound represented by formula (1) in the description, said method comprising allowing the compound of formula (1) to coexist with component (A) that is at least one kind of compound selected from the group consisting of a nonionic surfactant, a hydroxyalkylated cyclodextrin, a C1 to C3 monoalcohol, a C2 to C3 dialcohol, a C3 to C6 trialcohol, a polyalkylene glycol, gamma-lactone, polyvinylpyrrolidone, a chlorogenic acid, an alkyl sulfate and salts thereof. Also provided are a method for producing a pharmaceutical composition that comprises a compound represented by formula (1) and component (A), and a pharmaceutical composition produced thereby.