A sewing machine comprising: a throat plate (40, 40A) through which a needle hole (411, 421, 431A) is formed to allow a sewing needle to pass through the needle hole (411, 421, 431A); a moving mechanism configured to move a workpiece along an upper surface of the throat plate (40, 40A); a needle up-down moving mechanism configured to move the sewing needle up and down; a shuttle mechanism configured to capture an upper thread from the sewing needle below the throat plate (40, 40A) and to interlace the upper thread with a lower thread; a thread cutting device (80, 80A) provided between the throat plate (40, 40A) and the shuttle mechanism and configured to cut the lower thread and the upper thread; a wiper mechanism configured to pull out, upwardly from the workpiece, a sewing needle side portion of the upper thread that has been cut by the thread cutting device (80, 80A); and a control device configured to control operations of the moving mechanism, the thread cutting device (80, 80A) and the wiper mechanism, characterized in that the sewing machine further comprises a remaining end cutoff mechanism (100, 100A) disposed below the upper surface of the throat plate (40, 40A) and above the thread cutting device (80, 80A), in that the remaining end cutoff mechanism (100, 100A) is configured to cut off, after the lower thread and the upper thread are cut by the thread cutting device (80, 80A), remaining end portions of the lower thread and the upper thread connected to the workpiece, in that the throat plate (40, 40A) has a double layer structure comprising an upper layer (41, 41A) and a lower layer (42, 42A), in that the remaining end cutoff mechanism (100, 100A) comprises a cutoff knife (101, 101A, 102, 102A) incorporated between the upper layer (41, 41A) and the lower layer (42, 42A) to cut off, after the lower thread and the upper thread are cut by the thread cutting device (80, 80A), the remaining end portions of the lower thread and the upper thread connected to the workpiece, and in that the thread cutting device (80, 80A) includes a movable thread cutting knife (81, 81A) and a stationary thread cutting knife (82, 82A). a throat plate (40, 40A) through which a needle hole (411, 421, 431A) is formed to allow a sewing needle to pass through the needle hole (411, 421, 431A); a moving mechanism configured to move a workpiece along an upper surface of the throat plate (40, 40A); a needle up-down moving mechanism configured to move the sewing needle up and down; a shuttle mechanism configured to capture an upper thread from the sewing needle below the throat plate (40, 40A) and to interlace the upper thread with a lower thread; a thread cutting device (80, 80A) provided between the throat plate (40, 40A) and the shuttle mechanism and configured to cut the lower thread and the upper thread; a wiper mechanism configured to pull out, upwardly from the workpiece, a sewing needle side portion of the upper thread that has been cut by the thread cutting device (80, 80A); and a control device configured to control operations of the moving mechanism, the thread cutting device (80, 80A) and the wiper mechanism, characterized in that the sewing machine further comprises a remaining end cutoff mechanism (100, 100A) disposed below the upper surface of the throat plate (40, 40A) and above the thread cutting device (80, 80A), in that the remaining end cutoff mechanism (100, 100A) is configured to cut off, after the lower thread and the upper thread are cut by the thread cutting device (80, 80A), remaining end portions of the lower thread and the upper thread connected to the workpiece, in that the throat plate (40, 40A) has a double layer structure comprising an upper layer (41, 41A) and a lower layer (42, 42A), in that the remaining end cutoff mechanism (100, 100A) comprises a cutoff knife (101, 101A, 102, 102A) incorporated between the upper layer (41, 41A) and the lower layer (42, 42A) to cut off, after the lower thread and the upper thread are cut by the thread cutting device (80, 80A), the remaining end portions of the lower thread and the upper thread connected to the workpiece, and in that the thread cutting device (80, 80A) includes a movable thread cutting knife (81, 81A) and a stationary thread cutting knife (82, 82A).