All doors lock automatically when the lock side is pressed. They unlock when the unlock side is pressed.
Driver's door

Front passenger's door

To lock all the doors from an open front door, press the lock side of the door lock switch and then close the door.
NOTE
When locking the doors this way, be careful not to leave the key inside the vehicle.
Locking, Unlocking with Transmitter
Auto Lock/Unlock FunctionMazda 6 Owners Manual: Headlights
Turn the headlight switch to turn the headlights and other exterior lights on
or off. When the lights are turned on, the lights-on indicator light in the instrument
cluster turns on.
NOTE
If the light switch is left on, the lights will automatically switch
off approximately 30 seconds ...
Mazda 6 Owners Manual: Moonroof (Some models)
The moonroof can be opened or closed electrically only when the ignition is switched
ON.
WARNING
Do not let passengers stand up or extend part of the body through the open
moonroof while the vehicle is moving: Extending the head, arms, or other parts
of the body through the moonroof is dan ...