Could this be the purge valve, the engine management light is going on and off
My car has 71000 miles.
My car has a manual transmission.
Hello there, many faults can cause a rough idle and the Check Engine Light to be on with your 2007 Mazda 3.
The first course of action would be to check what code is stored in the ECU. This code will help determine what direction to go with diagnosis.
A qualified technician such as one from YourMechanic will be able to diagnose your rough idle and make any repairs required to resolve the issue.