1. Disconnect the negative battery cable.
2. Remove the front door trim or rear door trim.

3. Disconnect the power window motor connector.
4. Remove the bolts.
5. Remove the power window motor from the power window regulator drum.
6. Install in the reverse order of removal.
Note
Power window regulator removal/installation
Power window motor inspectionMazda 6 Service Manual: Active Adaptive Shift (AAS)
Active Adaptive Shift (AAS) automatically controls the transaxle shift points
to best suit the road conditions and driver input. This improves driving feel. The
transaxle may switch to AAS mode when driving up and down slopes, cornering, driving
at high elevations, or depressing the accelerato ...
Mazda 6 Service Manual: Jam-safe Moonroof
If a person's hands, head or an object blocks the moonroof while it is closing,
the moonroof will stop and move in the reverse direction.
WARNING
Make sure nothing blocks the moonroof just before it reaches the fully closed
position: Blocking the moonroof just before it reaches the closed posi ...