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: Saving Fuel and Protection of the Environment
How you operate your Mazda determines how far it will travel on a tank of fuel.
Use these suggestions to help save fuel and reduce CO2.
Avoid long warm-ups. Once the engine runs smoothly, begin driving.
Avoid fast starts.
Drive at lower speeds.
Anticipate when to apply the brakes (avoid ...
Mazda 6 Service Manual: Joint shaft disassembly/assembly
1. Disassemble in the order indicated in the table.
2. Assemble in the reverse order of disassembly.
Joint Shaft Disassembly Note
Disassemble the joint shaft.
Bearing Disassembly Note
Remove the bearing using the SSTs.
Dust Seal (Right) Assembly Note
1. Apply grease to the new dust se ...