My headlights keep coming back on with clicking noise of door locks
on 2007 Ford Five Hundred

Noticed lights back on after coming in the house. Could not
get them to go out and stay out. Clicking noise like door locks are locking and unlocking. This is the first and only time this has happened. Removed red cable from battery. Any ideas on what is causing this?

Asked by for the 2007 Ford Five Hundred
poss your auto headlight relay /timer is going out,seek diag and est from your mech