The curtain air bags are mounted in the front and rear window pillars, and the roof edge along both sides.
When the air bag crash sensors detect a side impact of greater than moderate force, the curtain air bag inflates quickly and helps to reduce injury mainly to the rear outboard passenger's head caused by directly hitting interior parts such as a door or window. For more details about air bag deployment, refer to "SRS Air Bag Deployment Criteria".
In a side impact:
Greater than moderate impact to one side of the vehicle will cause the curtain air bag on that side only to inflate.

(With Front Passenger Occupant Classification System) In a roll-over:
In response to a vehicle roll-over, both curtain air bags inflate.

Warning Light/Beep
A system malfunction or operation conditions are indicated by a warning.Refer to Warning/Indicator Lights. Refer to Warning Sound is Activated.
Side Air Bags
SRS Air Bag Deployment CriteriaMazda 6 Owners Manual: Front stabilizer removal/installation
1. Remove the front crossmember component. (See FRONT CROSSMEMBER
REMOVAL/INSTALLATION.)
2. Remove in the order indicated in the table.
3. Install in the reverse order of removal.
4. Adjust the headlight zeroset. (See HEADLIGHT ZEROSET.)
5. Inspect the front wheel alignment. (See FRONT WHEEL A ...
Mazda 6 Owners Manual: Electrical parts
Battery cable
Before disconnecting connectors or removing electrical parts, disconnect
the negative battery cable.
Wiring Harness
To remove the wiring harness from the clip in the
engine room, pry up the hook of the clip using a
flathead screwdriver.
...