1. Remove the rear door unit.
2. Remove the screws, then remove the rear door latch and lock actuator.

3. Install in the reverse order of removal.
Front door latch and lock actuator removal/installation
Front door key cylinder removal/installationMazda 6 Service Manual: Saving Fuel and Protection of the Environment
How you operate your Mazda determines how far it will travel on a tank of fuel.
Use these suggestions to help save fuel and reduce CO2.
Avoid long warm-ups. Once the engine runs smoothly, begin driving.
Avoid fast starts.
Drive at lower speeds.
Anticipate when to apply the brakes (avoid ...
Mazda 6 Service Manual: No.1 while vehicle is in reverse, vehicle locator mark goes forward
When performing an asterisked (*) troubleshooting inspection, shake the
wiring harness and connectors while doing the inspection to discover whether
poor contact points are the cause of any intermittent malfunction. If there
is a problem, check to make sure connectors, terminals and wiri ...