Trans fat is formed when food manufacturers turn liquid vegetable oils into solid fats by adding hydrogen, a process called hydrogenation, to increase the shelf life and maintain the flavor of foods.