The sewing machine includes a projector and a controller. The controller determines a sewing area inside an embroidery hoop such that the sewing area is greater than a projection area where the projector projects a projection image. The controller determines an embroidery pattern and a position of the embroidery pattern located relative to the sewing area. The controller determines, in the sewing area, a target area corresponding to the projection area. The controller generates projection image data representing a part or a whole, which falls in the target area, of the embroidery patter relative to the sewing area, and controls the projector to project a projection image based on the projection image data after moving the embroidery hoop.