The process dehydrogenates methanol in the presence of a catalyst based on aluminum oxide, alkali metal aluminate and/or alkaline earth metal aluminate with the exclusion of oxygen at a temperature of 650.degree. to 1050.degree. C. in a reactor whose inner wall is composed entirely or partly of aluminum oxide. The process gives anhydrous formaldehyde which contains only very minor impurities.