<Tr> <Th> Main ingredients </Th> <Td> Vegetable oils </Td> </Tr> <Tr> <Td_colspan="2"> Cookbook: Margarine Media: Margarine </Td> </Tr> <P> Margarine (/ ˈmɑːrdʒrɪn / (listen) or / - dʒ ər -, - ɡər -, ˈmɑːrdʒəriːn, - ˈriːn /) is an imitation butter spread used for spreading, baking, and cooking . Hippolyte Mège - Mouriès created it in France, in 1869 . He was responding to a challenge by Emperor Napoleon III to create a butter substitute for the armed forces and lower classes . It was later named margarine . </P> <P> Whereas butter is made from the butterfat of milk, modern margarine is made mainly of refined vegetable oil and water, and may also contain milk . In some places in the United States it is colloquially referred to as "oleo", short for oleomargarine . </P>

Who invented margarine and what is the story behind that invention
find me the text answering this question