Under the influence of ultrasonic irradiation, pyridazinone, triazinone, or phthalimide containing 2‑hydroxy dithiocarbamates, a biologically relevant novel organo-sulfur compound, was synthesized. Detailed characterization, computational, and molecular docking studies are being investigated. Molecular interactions were studied using 3D Hirshfeld surfaces and corresponding 2D fingerprint plots. Theoretical (DFT) studies on the molecular structure, HOMO, LUMO, and quantum chemical descriptors were performed at the B3LYP/6–311++G(d,p) level of theory. At the same time, the interaction energy was computed using the B3LYP/6–31G(d,p) level of theory. The FMO study revealed that molecules 4a and 4p in the gas phase have 3.545 eV and 3.263 eV HOMO-LUMO energy gaps, respectively, and they are hence kinetically stable. Quantum chemical calculations confirm the electrophilic character of compounds 4a and 4p, as the molecule is stable and highly electrophilic. The interactions of 2‑hydroxy dithiocarbamate derivatives (4a-4t) with the ligand-binding site of the target COX-2 (cyclooxygenase-2) enzyme were investigated using in-silico molecular docking experiments. Compared to the standard medicine celecoxib, the results showed that most synthesized derivatives had better glide scores and interaction. The docking study of all the synthesized compounds revealed that compounds 4a, 4e, and 4o interact well with the COX-2 enzyme as anti-inflammatory drugs. Molecular dynamic simulation was utilized to validate the docking study and explore the stable binding site and interaction of compound 4o, which is the most potent. The findings indicated that compound 4o exhibited better stability and interaction when compared to the reference drug.