Butter is an emulsion of of dairy fat, protein, and water. It is used to cook with, as well as a condiment. It adds a rich creamy flavor to foods. When vegetable fats are used instead of milk fats, it makes a product known as margarine. Some margarines are healthier than butter due to the types of fats used in the emulsion.