How do you get tail lights to turn off when the car engine and lights are off?

Look up under your dash where the brake pedal is attached, you will see a switch that makes the brake lights turn on when you step on the pedal and off when you leave off the pedal. The switch is probably stuck. In the meantime you could disconnect the negative battery cable so your battery doesn't die.