1. Remove the front scuff plate.
2. Remove the rear scuff plate.
3. Pull the area marked A, then remove one side of the B-pillar lower trim.

4. Pull the B-pillar lower trim, then remove the pin from the body.
5. Remove the B-pillar lower trim.
6. Install in the reverse order of removal.
A-pillar trim installation
B-pillar upper trim removal/installationMazda 6 Service Manual: Power Moonroof Reset Procedure
If the battery is disconnected, the moonroof will not operate. The moonroof will
not operate correctly until it is reset.
Carry out the following procedure to reset the moonroof and resume operation:
1. Switch the ignition ON.
2. Press the tilt switch, to partially tilt open the rear of the moo ...
Mazda 6 Service Manual: System Operation
Make sure that the Lane-keep Assist System (LAS) & Lane Departure Warning System
(LDWS) OFF indicator light in the instrument cluster is turned off. When the Lane-keep
Assist System (LAS) & Lane Departure Warning System (LDWS) OFF indicator light is
turned on, press the switch and make ...