Margarine like butter, consists of a water-in-fat emulsion, with tiny droplets of water dispersed uniformly throughout a fat phase in a stable crystalline form. Margarine can be used for spreading, baking, and cooking. It is also commonly used as an ingredient in other food products, such as pastries and cookies, owing to its versatility.