1. Disconnect the negative battery cable.
2. Remove the headliner.
3. Disconnect the connector.
4. Remove the screws, and then remove the sunroof motor.

Sunroof unit disassembly/assembly
Sunroof motor installationMazda 6 Service Manual: General procedures
PRECAUTION (BRAKES)
Wheels and Tires Removal/Installation
1. The removal and installation procedures for the wheels and tires are not
mentioned in this section. When a
wheel is removed, tighten it to 88-118 N·m {9.0-12.0 kgf·m, 65.0-87.0 ft·lbf}.
Brake Lines Disconnection/Connection
Cautio ...
Mazda 6 Service Manual: Sunroof unit disassembly/assembly
1. Disconnect the negative battery cable.
2. Remove the deflector.
3. Remove the glass panel.
4. Disassemble in the order indicated in the table.
5. Assemble in the reverse order of disassembly.
Slider Disassembly Note
1. Remove the screw.
2. Slide the slider rearward, and remove it fro ...