Liquid vegetable oils are typically unsaturated fats, meaning they contain carbon-carbon double bonds. To convert these liquid oils into solid or semi-solid fats like margarine, hydrogen gas is added across the double bonds in the presence of a catalyst (usually nickel, palladium, or platinum). This process is called hydrogenation.