Nowadays nosocomial infection is a major concern in the world and the situation is aggravated by the emergence of antibiotic resistance. Disinfection of hospital surfaces by air is one of the means used for decontamination. However, the agents used in this process are toxic to humans. In this respect, the search for new, less toxic, and natural alternatives is necessary. Among these alternatives, essential oils (EOs) known for their antibacterial effects and their volatile nature constitute a promising potential. In this context, the evaluation of the antibacterial activity of essential oils of some Moroccan plants (Oreganum compactum, Rosmarinus officinalis, Artemisia herba-alba, Thymus vulgaris, Lavandula officinalis, Cedrus atlantica, and Syzygium aromaticum) on three bacteria, S. aureus, K. pneumoniae, and E. coli was performed. Three classical methods have been used: the well method, micro-atmosphere, and micro-dilution. Most of the EOs tested show antibacterial activity on all three strains. Oreganum compactum EO was the most effective while A. herba-alba EO was the weakest. The EOs used in this study for their antibacterial effects could be good disinfectants.