The present invention relates to a process for preparing diisocyanates from diamines and phosgene in the gas phase.