A stator segment arranged to define a portion of an annular stator includes a core segment including a core back portion arranged to extend in a circumferential direction of the stator, and a tooth portion arranged to extend from the core back portion in a radial direction of the stator; a coil wound around the tooth portion and including a pair of coil wire terminals; an insulating layer arranged between the coil and the tooth portion; and a resin layer arranged to seal the entire coil except for the pair of coil wire terminals. Circumferential end walls of the resin layer are arranged circumferentially inward of circumferential end walls of the core back portion.