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: Compression pressure
COMPRESSION INSPECTION
Warning
Hot engines and oil can cause severe burns. Be careful not to burn
yourself during removal/installation of each component.
1. Verify that the battery is fully charged.
Recharge it if necessary. (See BATTERY INSPECTION.)
2. Warm up the engine to the no ...
Mazda 6 Service Manual: Cooling system service warnings
COOLING SYSTEM SERVICE WARNINGS
Warning
Never remove the radiator cap or loosen the radiator drain plug
while the engine is running, or when the engine and radiator are hot.
Scalding coolant and steam may shoot out and cause serious injury. It may
also damage the engine and cooling sys ...