The title compounds (5a–j), (6a–j), and (7a–j) were prepared via a four-step procedure using starting material 4-methoxyaniline (1). The structure of all synthesized compounds was confirmed by FT-IR, 1 H NMR, 13C NMR, and CHN analysis. The synthesized compounds were tested for their antibacterial and antifungal activity (MIC) in vitro against organisms viz. B. subtilis, S. aureus, E. coli, P. aeruginosa, and C. albicans taking ciprofloxacin, ampicillin, streptomycin, penicillin-G, fluconazole, and nystatin as the standard drugs. Some of the compounds have shown significant activities.