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: Event Data Recorder
Event Data Recorder (U.S.A. and Canada)
This vehicle is equipped with an event data recorder (EDR). The main purpose
of an EDR is to record, in certain crash or near crash-like situations, such as
an air bag deployment or hitting a road obstacle, data that will assist in understanding
how a v ...
Mazda 6 Service Manual: Coil removal/installation
Note
Do not remove the coil unless you are replacing it.
When only the coil is replaced, the immobilizer system reprogram
procedure is not necessary.
1. Disconnect the negative battery cable.
2. Remove the column cover.
3. Remove in the order indicated in the table.
4. Install in ...