The most common reason for the check engine light to come on is a faulty oxygen sensor. Other common reasons include a loose gas cap, a misfire, or a problem with the emissions system.