A new flapping mechanism driven by external magnetic fields has been proposed for a flying microrobot. The flapping mechanism consists of a polyimide wing and a permanent magnet attached to a torsion spring. When alternating magnetic fields are applied, the wing flaps due to magnetic torque acting on the magnet. The wing was designed so that the mechanism could change the wing shape between up-stroke and down-stroke. As a result of adjusting the flapping angle, the maximum thrust exceeding the weight of the microrobot could be successfully obtained.