The antibacterial effect of nanoparticles is mainly studied on the ensembles of the bacteria. In contrast, the optical tweezer technique allows the investigation of similar effects on individual bacterium. E. coli is a self-propelled micro-swimmer and ATP-driven active microorganism. In this work, an optical tweezer is employed to examine the mechanical properties of E. coli incubated with ZnO and Ag nanoparticles (NP) in the growth medium. ZnO and Ag NP with a concentration of 10µg/ml were dispersed in growth medium during active log-growth phase of E. coli. This E. coli-NP incubation is further continued for 12h. The E. coli after incubation for 2h, 6h and 12h were separately studied by the optical tweezer for their mechanical property. The IR laser (λ = 975 nm; power = 100mW) was used for trapping the individual cells and estimated trapping force, trapping stiffness and corner frequency. The optical trapping force on E. coli incubated in nanoparticle suspension shows linear decreases with incubation time. This work brings the importance of optical trapping force measurement in probing the antibacterial stress due to nanoparticles on the individual bacterium.