1. Remove the rear door trim.
2. Remove the screw and bolt, then remove the glass guide.

3. Remove the quarter window and the molding together in one piece.
4. Remove the molding from the glass.
5. Install in the reverse order of removal.
Windshield installation
Rear window glass removalMazda 6 Service Manual: i-ACTIVSENSE (Some models)
i-ACTIVSENSE is a collective term covering a series of advanced safety and driver
support systems which make use of a Forward Sensing Camera (FSC) and radar sensors.
These systems consist of active safety and pre-crash safety systems.
These systems are designed to assist the driver in safer dri ...
Mazda 6 Service Manual: Distance Recognition Support System (DRSS) (Some models)
The Distance Recognition Support System (DRSS) measures the distance between
your vehicle and a vehicle ahead using a radar sensor (front) while the vehicle
speed is about 30 km/h (19 mph) or faster, and if your vehicle approaches a vehicle
ahead more closely than what is appropriate for maint ...