a semiconductor device includes a protective element which is formed on a semiconductor substrate and conducts current to the semiconductor substrate at a voltage lower than the breakdown voltage of an insulating layer formed between a gate electrode and the semiconductor substrate . the protective element is connected to a gate electrode of a mos transistor formed on the semiconductor substrate .