Margarine is a semi-solid emulsion primarily used as a substitute for butter. It is derived from vegetable oils and sometimes animal fats. The production of margarine involves several chemical processes, notably hydrogenation, which heavily relies on catalysis.