Process for preparing melamine from urea at elevated temperature and in the presence of a catalyst, in which a gaseous product stream is obtained which is contacted with a liquid coolant in a cooling zone and in which a proportion of the concentrated aqueous carbamate solution from the absorption zone is returned to the cooling zone.