If the margarine penetrated the dough, the layers would be “shortened” and the puffing effect restricted. Puff pastry margarine must also act as a frying medium. Because each dough layer is separated by a margarine layer, the heat of the oven causes the dough layers to fry. This helps to produce the ideal crisp, flaky texture.