The reaction of an alkyl or aryl isocyanates with some primary amines in acetonitrile at room temperature afforded the corresponding alkyl- and aryl-urea derivatives. All the prepared urea compounds have been elucidated by FTIR, NMR, and elemental analysis. The compounds 1 and 3 were confirmed by single-crystal X-ray diffraction. The 4-tolylsulfonyl isocyanate reacted with the aryl amines 1, 2, 3, and 2,4-dichloroaniline to afford the corresponding sulfonylurea derivatives 5–8. Likewise, the reaction of the isocyanates with 2,4-dichloroaniline, 5-methyl isoxazole-3-amine, and 2-aminothiazole derivatives gave the corresponding urea derivatives 9–17. All the prepared compounds 5–17 were tested in vitro as anti-microbial and anti-HepG2 agents. Moreover, analyzing gene expression of TP53-exon4 and TP53-exon7, DNA damage values, and DNA fragmentation percentages have been discussed. The compounds 5 and 8 recorded the highest activity against the tested microbial strains with maximum activity against C. albicans (50 mm) and B. mycoides (40 mm), respectively. The compounds 5 inhibited the growth of E. coli, S. aureus, and C. Albicans at the MIC level of 0.0489 µM, while the compound 8 was able to inhibit the visible growth of E. coli and C. albicans at MIC value of 3.13 µM and S. aureus at 0.3912 µM. In the same line, compound 5 showed the best cytotoxic activity against the HepG2 cell line (IC50 = 4.25 µM) compared to 5 fluorouracil with IC50 = 316.25 µM. Expression analysis of liver cancer related to a gene including TP53-exon4 and TP53-exon7 was used in HepG2 Liver cancer cell lines using RT-qPCR. The expression values of TP53-exon4 and TP53-exon7 genes were decreased. The DNA damage values and DNA fragmentation percentages were increased significantly (P < 0.01) in the treated HepG2 (5) sample compared with the negative control. Docking studies were performed for the synthetic compounds against 2 bacterial proteins (DNA gyrase subunit B, and penicillin binding protein 1a) that are known targets for some antibiotics, and one cell division protein kinase 2 (CDK2) as target for anticancer drugs.