Sunroof Unit Removal/Installation
If the sunshade is forced close while the sunroof is open, the sunshade could be damaged.
1. Disconnect the negative battery cable..
2. Remove the rain sensor cover. (Vehicles with auto light/wiper system).
3. Disconnect the rain sensor connector. (Vehicles with auto light/wiper system)
4. Partially peel back the seaming welts.
5. Remove the following parts:
a. Sunroof seaming welt
b. A–pillar trim.
c. Front scuff plate.
d. Rear scuff plate.
e. B-pillar lower trim.
f. Upper anchor of the front seat belt.
g. B-pillar upper trim.
h. Rear seat cushion.
i. Tire house trim.
j. Trunk side upper trim (5HB).
k. C–pillar trim.
l. Map light.
m. Sunvisor.
n. Assist handle.
o. Headliner.
6. Disconnect the front and rear drain hose from the sunroof frame.
7. Disconnect the sunroof motor connector.
8. Remove the bolts.

9. Remove the nuts, and then remove the sunroof unit.
10. Install in the reverse order of removal.
11. Adjust the glass panel..
Test yourself
A quick Mazda 3 quiz: every answer comes with an explanation and a link to the manual page.