If the theft-deterrent system detects an inappropriate entry into the vehicle, which could result in the vehicle or its contents being stolen, the alarm alerts the surrounding area of an abnormality by sounding the horn and flashing the hazard warning lights.
The system will not function unless it's properly armed. So when you leave the vehicle, follow the arming procedure correctly.
Mazda 6 Owners Manual: Locking, Unlocking with Door- Lock Knob
Operation from inside
To lock any door from the inside, press the door-lock knob.
To unlock, pull it outward. This does not operate the other door locks.
NOTE
The red indication can be seen when the door-lock knob is unlocked.
Operation from outside
To lock the rear and front passenger doo ...
Mazda 6 Owners Manual: Jam-safe Moonroof
If a person's hands, head or an object blocks the moonroof while it is closing,
the moonroof will stop and move in the reverse direction.
WARNING
Make sure nothing blocks the moonroof just before it reaches the fully closed
position: Blocking the moonroof just before it reaches the closed posi ...