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: Drive shaft (mtx) disassembly/assembly
1. Disassemble in the order indicated in the table.
2. Assemble in the reverse order of disassembly.
Clip Disassembly Note
1. Mark the drive shaft and outer ring for proper assembly.
Caution
Mark with paint; do not use a punch.
2. Remove the clip.
Balls, Inner Ring, Cage Disassembl ...
Mazda 6 Service Manual: General procedures
PRECAUTION (SUSPENSION)
Wheels and Tires Removal/Installation
When a wheel is installed, tighten it to 88-118 N·m {9.0-12.0 kgf·m,
65.0-87.0 ft·lbf}.
Suspension Links Removal/Installation
Tighten any part of the suspension that uses rubber bushings only after the
vehicle has been lowered ...