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: Units
Conversion to SI Units (Système International d'Unités)
All numerical values in this manual are based on SI units. Numbers shown
in conventional units are converted from these values.
Rounding Off
Converted values are rounded off to the same number of places as the SI
unit value ...
Mazda 6 Service Manual: Plastic Part Maintenance
When cleaning the plastic lenses of the lights, do not use gasoline, kerosene,
rectified spirit, paint, thinner, highly acidic detergents, or strongly alkaline
detergents. Otherwise, these chemical agents can discolor or damage the surfaces
resulting in a significant loss in functionalit ...