A motor comprising: a cylindrical stator; a rotor disposed inside the stator; a shaft connected to the rotor and extending along a center axis of the stator; a board case provided at one end of the stator in a direction along the center axis of the stator; a circuit board provided in the direction along the center axis of the stator oppositely to the stator with the board case being interposed between the circuit board and the stator in the direction along the center axis of the stator; a connecting portion provided on a mounting surface of the circuit board, the circuit board having another surface facing the stator in the direction along the center axis of the stator and being opposite to the mounting surface of the circuit board; a lead wire connected to the connecting portion; and a protection tube to cover a circumference of the lead wire, characterised in that the board case has a first holding portion and a second holding portion that are formed thereon, wherein the first holding portion is in a square U-shape having a facing surface, as viewed along the center axis of the stator, and the second holding portion is in a square U-shape having a facing surface, as viewed along the center axis of the stator, the first holding portion protruding above the mounting surface out of the circuit board, the second holding portion protruding above the mounting surface out of the circuit board, the facing surface of the second holding portion facing the facing surface of the first holding portion, and as viewed along the center axis of the stator, a width of the facing surface of the second holding portion is smaller than a width of the facing surface of the first holding portion, the protection tube is sandwiched and held between the first holding portion and the second holding portion, and the circuit board has a cutout formed therethrough in the direction along the center axis of the stator to allow the first holding portion and the second holding portion to pass through the cutout. a cylindrical stator; a rotor disposed inside the stator; a shaft connected to the rotor and extending along a center axis of the stator; a board case provided at one end of the stator in a direction along the center axis of the stator; a circuit board provided in the direction along the center axis of the stator oppositely to the stator with the board case being interposed between the circuit board and the stator in the direction along the center axis of the stator; a connecting portion provided on a mounting surface of the circuit board, the circuit board having another surface facing the stator in the direction along the center axis of the stator and being opposite to the mounting surface of the circuit board; a lead wire connected to the connecting portion; and a protection tube to cover a circumference of the lead wire, characterised in that the board case has a first holding portion and a second holding portion that are formed thereon, wherein the first holding portion is in a square U-shape having a facing surface, as viewed along the center axis of the stator, and the second holding portion is in a square U-shape having a facing surface, as viewed along the center axis of the stator, the first holding portion protruding above the mounting surface out of the circuit board, the second holding portion protruding above the mounting surface out of the circuit board, the facing surface of the second holding portion facing the facing surface of the first holding portion, and as viewed along the center axis of the stator, a width of the facing surface of the second holding portion is smaller than a width of the facing surface of the first holding portion, the protection tube is sandwiched and held between the first holding portion and the second holding portion, and the circuit board has a cutout formed therethrough in the direction along the center axis of the stator to allow the first holding portion and the second holding portion to pass through the cutout.