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: Sunroof relay inspection
Note
Sunroof relay is built in the sunroof motor.
1. Remove the headliner. (See HEADLINER REMOVAL/INSTALLATION.)
2. Connect the sunroof switch connector.
3. Measure the voltage at the sunroof relay terminals as indicated below.
4. Disconnect the sunroof relay connector before inspecting fo ...
Mazda 6 Service Manual: Adaptive Front Lighting System (AFS) (Some models)
The adaptive front lighting system (AFS) automatically adjusts the headlight
beams to the left or right in conjunction with the operation of the steering wheel
after the headlights have been turned on and the vehicle speed is about 2 km/h (2
mph) or higher.
A system malfunction or operation c ...