why is the engine is suddenly running rough and the check engine light is on. on 2001 Acura TL

replaced spark plugs. did not help.

2 answers
Probable misfire. Likely cause a failed spark plug ignition coil. Get a free read of the check engine light at Autozone and post result on here to further assist you.
scan codes and post