In the publication, instead of the side wall used in Embodiment 1, an anodic oxidation film obtained by anodic oxidation of the gate electrode is used. [0261] When aluminum or material mainly containing aluminum is used as the gate electrode as in this embodiment, it becomes possible to form gate wiring with low wiring resistance, and an active matrix substrate having high response speed can be ma