Vegetable oils have alkenes in them. Alkenes are liquid and spoil easily. People making shortening add hydrogen to the alkene, turning it into an alkane. The alkanes are more solid and stable. A catalyst is used to react the hydrogen with the oil. This makes trans fats, though. Margarine is an example of a hydrogenated spread.