Here's what you should do:
1. Diagnose the problem: The best way to do this is to get the diagnostic trouble codes (DTCs) read by a professional mechanic or using an OBD-II scanner. Auto parts stores often offer free code reading services. The codes will pinpoint the specific issue triggering the light.
2. Fix the problem: Once you know what's causing the check engine light, you need to fix it. This could range from a simple loose gas cap (a common cause) to a more serious engine issue. Attempting repairs yourself depends on your mechanical skills and comfort level. Consult a repair manual or seek professional help if needed.
3. After repair, clear the code: *Only after* you've addressed the problem causing the check engine light should you attempt to clear the code. Many OBD-II scanners have this capability. Some higher-end auto parts store scanners have this functionality as well.
Do NOT attempt to reset the light without knowing the cause. Ignoring the light could lead to further damage and costly repairs down the line. The light is a warning, not a nuisance.