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 regulator removal/installation Power window motor inspection
Power window motor inspectionMazda 6 Service Manual: Transmitter battery inspection
   Caution
	Since the battery voltage does not drop fully if the button is 
	pushed for only 4 seconds or less, it can not be properly examined to see 
	whether it is good or bad. Always push the button for 5 seconds.
Note
	A correct measurement can not be obtained if the battery 
	temperat ...
   
Mazda 6 Service Manual: Master cylinder disassembly/assembly
   Caution
	If the master cylinder body is damaged, replace the unit as a 
	component. When securing the master cylinder in a vise, tighten only the 
	flange of the master cylinder.
1. Disassemble in the order indicated in the table.
2. Assemble in the reverse order of disassembly.
Stop ...