1. Fully open the glass panel.
2. Remove the headliner.
3. Remove the screws.
4. Disengage the hooks.
(1) Press the rear end of each hook.
(2) After sliding the hooks rearward, press them upward.
5. Remove the deflector.

6. Install in the reverse order of removal.
Sliding sunroof
Glass panel removal/installationMazda 6 Service Manual: Trailing link removal/installation
Caution
Performing the following procedures without first removing the ABS
wheel-speed sensor may possibly cause an open circuit in the harness if it
is pulled by mistake. Before performing the following procedures, remove the
ABS wheel-speed sensor (axle side) and fix it to an appropri ...
Mazda 6 Service Manual: Curtain Air Bags
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' ...