1. Disconnect the negative battery cable.
2. Remove the headliner.
3. Remove the glass panel.
4. Disconnect the front and rear drain hose from the sunroof frame.
5. Remove the bolt A, and then remove the rear set bracket.
6. Remove the bolt B and nuts, and then remove the sunroof unit.

7. Install in the reverse order of removal.
8. Adjust the glass panel. (See GLASS PANEL ADJUSTMENT.)
Rear drain hose installation
Sunroof unit disassembly/assemblyMazda 6 Service Manual: Sunshade
The sunshade can be opened and closed by hand.
The sunshade opens automatically when the moonroof is opened, but must be closed
by hand.
CAUTION
The sunshade does not tilt. To avoid damaging the sunshade, do not push
up on it.
Do not close the sunshade while the moonroof is opening. T ...
Mazda 6 Service Manual: Rear upper arm 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 ...