In order to eliminate impairment due to a disconnection and to make driving at high speed possible, a semiconductor device is provided which includes a plurality of pixels, each having a switching element, arrayed two-dimensionally, which includes a plurality of common lines connected to the switching elements arrayed in a direction, and which drives the switching elements. A plurality of driving devices for applying a control signal are connected to the common lines.