A packing machine for producing an inner container by folding an inner blank about a wrapped group of tobacco articles; wherein the inner container comprises a lid; wherein the inner blank has two longitudinal fold lines and a number of transverse fold lines which define, between the two longitudinal fold lines, at least one first panel forming a front wall of the inner container; a second panel forming a bottom wall of the inner container; a third panel forming a rear wall of the inner container; a fourth panel forming a rear wall of the lid; a fifth panel forming a top wall of the lid; wherein the fourth panel has two first wings which form respective lateral walls of the lid; are arranged on opposite sides of the fourth panel, and are connected to the fourth panel by the longitudinal fold lines; and wherein each wing has a tab which is connected to the wing by a transverse fold line; the packing machine comprises: a packing conveyor which has a packing pocket and feeds the inner blank along a packing path and through a first work station; and a first folding device which is arranged at the first work station to fold portions of the inner blank; the packing machine is characterized in that: the first folding device comprises a first folding body which is movable in a first direction perpendicular to the packing path for folding portions of the inner blank; and said first folding body first folds the tabs by 90°, with respect to the first wings and about a corresponding transverse fold line, then folds the wings by 90°, with respect to the fourth panel and about corresponding longitudinal fold lines, and then folds the fifth panel by 90°, with respect to the fourth panel and about a corresponding transverse fold line bringing the fifth panel in contact with the tabs while the first folding body moves with a continuous movement in the first work direction. a packing conveyor which has a packing pocket and feeds the inner blank along a packing path and through a first work station; and a first folding device which is arranged at the first work station to fold portions of the inner blank; the packing machine is characterized in that: the first folding device comprises a first folding body which is movable in a first direction perpendicular to the packing path for folding portions of the inner blank; and said first folding body first folds the tabs by 90°, with respect to the first wings and about a corresponding transverse fold line, then folds the wings by 90°, with respect to the fourth panel and about corresponding longitudinal fold lines, and then folds the fifth panel by 90°, with respect to the fourth panel and about a corresponding transverse fold line bringing the fifth panel in contact with the tabs while the first folding body moves with a continuous movement in the first work direction. the first folding device comprises a first folding body which is movable in a first direction perpendicular to the packing path for folding portions of the inner blank; and said first folding body first folds the tabs by 90°, with respect to the first wings and about a corresponding transverse fold line, then folds the wings by 90°, with respect to the fourth panel and about corresponding longitudinal fold lines, and then folds the fifth panel by 90°, with respect to the fourth panel and about a corresponding transverse fold line bringing the fifth panel in contact with the tabs while the first folding body moves with a continuous movement in the first work direction.