when i turn the headlights on in my 99 montero the check engine light comes on on 1999 Mitsubishi Montero

when i turn the headlights on in my 1999 montero the check engine light comes on

Asked by for the 1999 Mitsubishi Montero
2 answers
scan test for codes
possible issue with alternator. get diagnostic run.