The present invention relates to a micromirror device having a reflecting portion and an electrode portion facing the reflecting portion. The reflecting portion includes a first movable beam and a second movable beam each having one end fixed and the other end displaceable. The first movable beam and the second movable beam are arranged in a line at a predetermined distance. A mirror is arrayed in a line with the beams and rotationally arranged between the beams. The first movable beam and the second movable beam are connected to the mirror. The electrode portion includes a driving electrode for the first movable beam; a driving electrode for the second movable beam; mirror driving electrodes; and two first wall electrodes and two second wall electrodes.