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: Engine control system operation inspection
Main Relay Operation Inspection
Verify that the main relay clicks when the ignition switch is turned to ON
position and off.
If there is no operation sound, inspect the following.
- Main relay (See RELAY INSPECTION.)
- Harness and connector between ignition switch and main relay termi ...
Mazda 6 Service Manual: Side protector installation
1. Remove the adhesive remaining on the side protector (if it will be reused)
and the body using a razor.
2. Remove any grease or dirt from the adhesion surface of the side protector
(if it will be reused) and the body.
3. Attach double-sided adhesive tape to the side protector as shown (if it ...