A rotary solenoid, comprising: an electromagnetic coil including a major magnetic pole arranged at a center thereof; two axially-magnetized magnets ; a swing yoke including a planar surface portion to which the magnets are fixed in a juxtaposed state such that magnetic poles differing from each other face the electromagnetic coil across air gaps; and an output shaft arranged in a perpendicular or substantially perpendicular relationship with the planar surface portion and in a parallel or substantially parallel relationship with the major magnetic pole so as to rotatably support the swing yoke , the swing yoke being arranged to be swung in forward and reverse directions at a specified angle θ with respect to a centerline interconnecting a center of the output shaft and a center of the major magnetic pole ; characterized in that a fixed yoke is arranged to support the electromagnetic coil and magnetically coupled with the major magnetic pole ; the fixed yoke includes projection portions extending upward from opposite sides of the fixed yoke near an outer periphery of the electromagnetic coil so as to have a same or substantially same height as the major magnetic pole ; the projection portions are arranged such that, when an inner edge of one of the magnets comes closest to the major magnetic pole within a swing range of the swing yoke , one of the projection portions comes closest to an outer edge of another one of the magnets arranged at an opposite side from the inner edge; and the projection portions of the fixed yoke are arranged into a shape conforming to the outer edges of the magnets so that, when the swing yoke is swung, each of the projection portions stands face-to-face with the outer edge of each of the magnets coming close to each of the projection portions over substantially an entire length thereof. an electromagnetic coil including a major magnetic pole arranged at a center thereof; two axially-magnetized magnets ; a swing yoke including a planar surface portion to which the magnets are fixed in a juxtaposed state such that magnetic poles differing from each other face the electromagnetic coil across air gaps; and an output shaft arranged in a perpendicular or substantially perpendicular relationship with the planar surface portion and in a parallel or substantially parallel relationship with the major magnetic pole so as to rotatably support the swing yoke , the swing yoke being arranged to be swung in forward and reverse directions at a specified angle θ with respect to a centerline interconnecting a center of the output shaft and a center of the major magnetic pole ; characterized in that a fixed yoke is arranged to support the electromagnetic coil and magnetically coupled with the major magnetic pole ; the fixed yoke includes projection portions extending upward from opposite sides of the fixed yoke near an outer periphery of the electromagnetic coil so as to have a same or substantially same height as the major magnetic pole ; the projection portions are arranged such that, when an inner edge of one of the magnets comes closest to the major magnetic pole within a swing range of the swing yoke , one of the projection portions comes closest to an outer edge of another one of the magnets arranged at an opposite side from the inner edge; and the projection portions of the fixed yoke are arranged into a shape conforming to the outer edges of the magnets so that, when the swing yoke is swung, each of the projection portions stands face-to-face with the outer edge of each of the magnets coming close to each of the projection portions over substantially an entire length thereof. <EOS>