The problem could range from something minor (like a loose gas cap) to something more serious (like a failing sensor or catalytic converter). You need to get the diagnostic trouble codes (DTCs) read by a mechanic or using an OBD-II scanner. This scanner will give you a specific code(s) that will pinpoint the issue. Ignoring the light could lead to further damage and potentially expensive repairs.
Trying to guess what's wrong based solely on the light coming on is unreliable and could lead to unnecessary expenses replacing parts that aren't actually faulty. Get it scanned to determine the real problem.