Why would the door light stay on in your 97 maxima when thedoor are close?

The door lights are supposed to go out when the circuit is completed by closing the door. A loose or corroded ground wire in the door latch can cause the lights to stay on.