A spindle motor includes a printed wiring board. A stator is fixed to the printed wiring board. A housing is fixed to the printed wiring board. A bearing is provided on the housing. A rotor shaft is rotatably supported by the bearing. A hub base is mounted on the rotor shaft. A stator winding provided on the stator is bonded to the printed wiring board. The stator may have an inner circumferential portion formed with a plurality of grooves. In this case, it is preferable that the printed wiring board has a plurality of through holes at positions corresponding to positions of the grooves in the stator.