The check engine light gets illuminated when the on-board diagnostics detects issues with any of the engine management systems like a sensor or a component. It can also be due to an emission issue like a leak in the EVAP system or a faulty oxygen sensor etc.
There could be any number of reasons of why the engine light is on.
Best course of action is to scan the vehicle and retrieve the error code(s).
This will help with the diagnostics.
Here is a helpful video:
Thursday, December 9th, 2021 AT 9:53 PM