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: Door switch removal/installation
Front
1. Disconnect the negative battery cable.
2. Remove in the order indicated in the table.
3. Install in the reverse order of removal.
Rear
1. Disconnect the negative battery cable.
2. Remove in the order indicated in the table.
3. Install in the reverse order of removal. ...
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 ...