Margarine is a type of fat that is solid at room temperature and used as a replacement for butter. Margarine often contains trans fats, which have been shown to cause inflammation and increase risk of disease. Any product with hydrogenated or partially hydrogenated oil will contain trans fats. Since trans fats have been phased out of most foods, there are types of margarine available that do not have trans fats.