An optical device comprising: a base that includes a main surface; a movable unit that includes an optical function unit; and a first elastic support unit and a second elastic support unit that are connected between the base and the movable unit, and support the movable unit so that the movable unit is movable along a predetermined direction perpendicular to the main surface, wherein the movable unit includes a main body portion, a frame portion that surrounds the main body portion with a predetermined interval from the main body portion when viewed from the predetermined direction, and a plurality of connection portions which connect the main body portion and the frame portion to each other, the first elastic support unit includes a pair of first torsion support portions connected to the frame portion, the second elastic support unit includes a pair of second torsion support portions connected to the frame portion, the main body portion includes a central portion provided with the optical function unit, and an outer edge portion, the outer edge portion includes a first rib portion that is formed so that the thickness of the outer edge portion in the predetermined direction is larger than the thickness of the central portion in the predetermined direction, the frame portion includes a second rib portion that is formed so that the thickness of the frame portion in the predetermined direction is larger than the thickness of the central portion in the predetermined direction, and a width of each of the plurality of connection portions is larger than the interval, and is smaller than a distance from a connection position with each of the plurality of connection portions in the frame portion to any of a connection position with each of the pair of first torsion support portions and a connection position with each of the pair of second torsion support portions, wherein each of the plurality of connection portions is connected along the entire width to the main body portion and to the frame portion. a base that includes a main surface; a movable unit that includes an optical function unit; and a first elastic support unit and a second elastic support unit that are connected between the base and the movable unit, and support the movable unit so that the movable unit is movable along a predetermined direction perpendicular to the main surface, wherein the movable unit includes a main body portion, a frame portion that surrounds the main body portion with a predetermined interval from the main body portion when viewed from the predetermined direction, and a plurality of connection portions which connect the main body portion and the frame portion to each other, the first elastic support unit includes a pair of first torsion support portions connected to the frame portion, the second elastic support unit includes a pair of second torsion support portions connected to the frame portion, the main body portion includes a central portion provided with the optical function unit, and an outer edge portion, the outer edge portion includes a first rib portion that is formed so that the thickness of the outer edge portion in the predetermined direction is larger than the thickness of the central portion in the predetermined direction, the frame portion includes a second rib portion that is formed so that the thickness of the frame portion in the predetermined direction is larger than the thickness of the central portion in the predetermined direction, and a width of each of the plurality of connection portions is larger than the interval, and is smaller than a distance from a connection position with each of the plurality of connection portions in the frame portion to any of a connection position with each of the pair of first torsion support portions and a connection position with each of the pair of second torsion support portions, wherein each of the plurality of connection portions is connected along the entire width to the main body portion and to the frame portion.