Here in MA most vehicles have to pass a MA State Inspection once a year. This inspection includes a safety check and an emissions test.
The safety check includes checking:
Most emission tests will involve the inspection station scanning the computer of your vehicle. If the Check Engine Light is on or has been tampered with, the vehicle will fail inspection.