Margarine, which is a blend of oils, can be used as a substitute for butter. It is particularly useful in baking, since it gives baked goods a softer texture than butter, which some people prefer.