The process whereby hydrogen is removed from compounds by chemical means. Dehydrogenation of primary alcohols yields the group of compounds called aldehydes. It is considered to be a form of oxidation, as two hydrogen atoms, each of which contains an electron, have been removed. An example is the reaction CH3CH2OH → CH3CHO + H2