Margarine is a butter substitute that has been made from the hydrogenation of vegetable fats, often mixed with animal fats. Vegetarian margarine is pure vegetable fat, but you need to look carefully to ensure you get what you think you're buying.
Dowell, P., Bailey, A. (1980) The Book of Ingredients, Dorling Kindersley. ISBN 0718119150.