The invention relates to a 3D (three-dimensional) sewing machine, which comprises a machine needle, a rotating shuttle, a transmission device and a driving device, wherein the driving device respectively and synchronously drives the machine needle and the rotating shuttle through the transmission device, the rotating shuttle is arranged in a work table, the work table is in a cylindrical shape or a circular arc shape, positioning blocks matched with the cylindrical or arc-shaped work table are arranged on the cylindrical or circular arc-shaped work table and are connected with a positioning block driving device, the positioning block driving device is arranged on an annular screw rod connected with the work table and comprises a first driving device, a second driving device and a controller, the first driving device enables the positioning blocks to horizontally move, the second driving device moves along the annular lead screw, and the controller coordinates the work of the first driving device and the second driving device. Because the structure of the work table is in the cylindrical shape or the circular arc shape, the work table can more perfectly adapt to 3D objects to be sewed. The defect that a plane work table cannot sew 3D or irregular-shaped objects can be overcome, the sewing efficiency is improved, the cost is reduced, and meanwhile, the quality of sewed products maintains the consistency.