Mosquitoes are a key threat to millions of people worldwide. They spread the pathogens that cause deadly diseases among humans and animals. Synthetic pesticides are the best agents to control mosquitoes, but they cause several problems for the environment as well as public health. Continuous usage of commonly available insecticides develops multiple resistances among pests. In search of alternatives to synthetic pesticides, botanicals could be one of the best alternatives to control mosquitoes. The present study explores the insecticidal activity of Ocimum americanum against Aedes aegypti larvae and their effect on detoxification enzymes. Leaves of O. americanum were sequentially extracted using hexane, chloroform, and methanol. Among these, hexane extract showed 100% larvicidal activity at 1 g/L concentration for 24 h and the LC50 value was 0.3 g/L. The phytochemical screening of hexane extract was performed through gas chromatography‐mass spectrometry analysis, which showed 27 compounds. The major compounds are squalene (13.03%), camphor (9.77%), and 1‐Iodohexadecane (8.02%). The toxicity of active hexane extract was tested against third instar larvae of Chironomus costatus (nontarget organism). Results revealed less toxicity (12.2%) at 1 g/L concentration on the nontarget organism. The enzyme activity of acetylcholinesterase and β‐carboxylesterase was significantly inhibited by the hexane extract. The present study reveals the insecticidal potential of O. americanum with minimum effects on nontarget organisms. The O. americanum extract inhibited the activity of A. aegypti's major insecticide‐resistant enzymes. O. americanum could be one of the best alternatives to controlling mosquitoes.