New 6-chloro-1,2,3,4-tetrahydrocarbazole compounds were prepared from the reaction of cyclohexanone with 4-chlorophenylhydrazine. The synthesis of heterocyclic compounds was carried out through the reaction of cyclohexanone with 4-chlorophenylhydrazine, then the produced compound was treated with two NSAIDs (indomethacin, diclofenac) by amide bond formation to form N-substituted THCZ by NSAIDs. The characterization of prepared compounds was identified using the 1 H, 13 C NMR and FT-IR spectroscopies. The antimicrobial activity of the synthesized compounds was tested in vitro to discover a good activity as antifungal and moderate as antibacterial, which was confirmed by the docking study of the compounds.