Disclosed is a control device which controls the swing action of an air conditioner to improve room amenity. Specifically disclosed is a control device (4) which controls the swing action to vertically swing flaps (22a to 22d) of an air conditioner (1), and which is provided with an operation mode determination unit (41a), a swing pattern storage area (42), and a control command generating unit (41e). The operation mode determination unit (41a) at least determines a cooling operation mode and a heating operation mode, which are the operation mode of the air conditioner (1). The swing pattern storage area (42) stores a plurality of swing patterns which are information associated with the swing action. The control command generating unit (41e) generates a control command of the air conditioner (1) on the basis of a swing pattern in accordance with the result determined by the operation mode determination unit (41a) among the plurality of swing patterns.