Simultaneous bacteria inactivation and heavy metal ions removal was investigated. Nano-MgO exhibited high efficiencies for E. coli inactivation and Cd2+ removal. ROS production and direct interaction between MgO and E. coli are two main factors. Cd2+ existed in the system accelerated E. coli inactivation by nano-MgO.