Butter is made from milk or cream while margarine is a plant-based butter alternative that's typically made with a blend of vegetable oils like palm oil and soybean oil.
Even though some people think that margarine is a better choice than butter because it's lower in saturated fat, margarine is made with vegetable oils like soybean oil, which are high in omega-6 fats.
Although the body needs omega-6 fats, most people consume too many foods rich in omega-6 fats — which tend to be pro-inflammatory — and not enough foods rich in anti-inflammatory omega-3 fats, like fatty fish.
Although the ideal omega-3 to omega-6 ratio is still unknown, it's best to focus on increasing your intake of omega-3 fats and limiting omega-6-rich foods like corn and soybean oil.
Additionally, while the use of artificial trans fats has been banned in many countries, some kinds of margarine still contain small amounts of trans fats, which are harmful to heart health