The present invention relates to a pharmaceutical composition which includes at least three active ingredients. The first active ingredient is selected from the group constituted by a derivative of butyric acid, a benzamide, a cyclic tetrapeptide, a derivative of hydroxamic acid, a carboxylic acid having 5 to 10 carbon atoms, and combinations thereof. The second active ingredient is an amide of nicotinic acid and procaine hydrochloride with its stabilizers, that are first assembled in a polymeric matrix and then joined to the nicotinic acid. The third active ingredient is selected from the group constituted by a retinoid, a rexinoid and combinations thereof. This composition is useful in particular for treating a form of cancer such as prostate cancer.