2000 Honda Accord check engine light mystery

It might be a bad O2 sensor. The exact code would provide a clue.

Also Google “How to pass a smog test”, there are some good informative links there on this topic.