In the crystals of alkaline earth metal compounds strontium and barium with the non-steroidal anti-inflammatory drug nimesulide, the strontium cation is nine-coordinated with a distorted tricapped trigonal prismatic geometry TCTPR-9, whereas the ten-coordinated barium ion exhibits a distorted tetracapped trigonal prismatic geometry TCTPR-10.