A machine for forming and filling a container for pourable products, said container having four side walls and two bottom walls (4, 5), each provided with a pair of triangular wings; the forming and filling machine comprises: a processing conveyor, which is adapt for feeding a strip of wrapping material through a bending station, for bending the strip of wrapping material in a tubular shape and providing it with a longitudinal seal, through a filling station, for feeding a product dose into the strip of wrapping material bent in a tubular shape, and through a sealing station, for providing the strip of wrapping material bent in a tubular shape with two opposite cross seals, each forming a sealing fin to define the container which, at the same time or later, is separable from the strip of wrapping material by means of a cross cut; a transfer conveyor, which is provided with a first pocket, which is adapt for feeding along a linear transfer path and for receiving the container from the processing conveyor with the sealing fins of the two cross seals and with the triangular wings in the original position; and a folding drum, which is rotary, is provided with a second pocket, which is adapt for receiving the container from the transfer conveyor, and is provided with folding members for folding the triangular wings of the bottom walls (4, 5) against the respective side walls and/or against the respective bottom walls (4, 5); the forming and filling machine is characterized in that it comprises a feeding and folding device, which is adapt for picking up the container from the first pocket of the transfer conveyor, for inserting the container into the second pocket of the folding drum and for folding the sealing fins of the cross seals against the respective bottom walls (4, 5) of the container by 90°. a processing conveyor, which is adapt for feeding a strip of wrapping material through a bending station, for bending the strip of wrapping material in a tubular shape and providing it with a longitudinal seal, through a filling station, for feeding a product dose into the strip of wrapping material bent in a tubular shape, and through a sealing station, for providing the strip of wrapping material bent in a tubular shape with two opposite cross seals, each forming a sealing fin to define the container which, at the same time or later, is separable from the strip of wrapping material by means of a cross cut; a transfer conveyor, which is provided with a first pocket, which is adapt for feeding along a linear transfer path and for receiving the container from the processing conveyor with the sealing fins of the two cross seals and with the triangular wings in the original position; and a folding drum, which is rotary, is provided with a second pocket, which is adapt for receiving the container from the transfer conveyor, and is provided with folding members for folding the triangular wings of the bottom walls (4, 5) against the respective side walls and/or against the respective bottom walls (4, 5); the forming and filling machine is characterized in that it comprises a feeding and folding device, which is adapt for picking up the container from the first pocket of the transfer conveyor, for inserting the container into the second pocket of the folding drum and for folding the sealing fins of the cross seals against the respective bottom walls (4, 5) of the container by 90°.