This report describes the synthesis of new cyclic imides obtained from the reaction between aniline and dichloromaleic anhydride with further chlorosulphonation as well as the reaction between different amines and 4-methoxyphenol for the synthesis of imidobenzenesulphonyl derivatives. These compounds were tested as antinociceptive agents using the writhing test on mice. Some compounds, when intraperitoneally injected, proved to be potent and dose-related antinociceptives, being several times more active than many known reference drugs.