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: Starting the Engine
WARNING
Radio waves from the key may affect medical devices such as pacemakers:
Before using the key near people who use medical devices, ask the medical device
manufacturer or your physician if radio waves from the key will affect the device.
NOTE
The key must be carried because the key c ...
Mazda 6 Service Manual: Child-Restraint System Types
In this owner's manual, explanation of child-restraint systems is provided for the following three types of popular childrestraint systems: infant seat, child seat, booster seat.
NOTE
Installation position is determined by the type of child-restraint system. Always read the manufacturer' ...