A process for preparing methylenebis(phenyl isocyanate), comprising, in a semicontinuous process, introducing aniline and acid catalyst, the molar ratio of aniline to acid catalyst being from 1:0.6 to 1:0.01, feeding formaldehyde through a nozzle or a reaction mixture pump into a circuit in which said aniline and said acid catalyst with or without previously added formaldehyde is circulated at a temperature of from 20 to 75° C., after feeding in at least 50% of the total amount of formaldehyde to be fed in, heating the reaction mixture for a period of at least 0.2 hours at a temperature above 75° C., the molar ratio of the aniline introduced to the total amount of formaldehyde to be added being from 1.7:1 to 7.2:1, neutralizing the resulting methylenedianiline, separating off water and aniline, phosgenating the purified methylenedianiline at a temperature of from 50 to 150° C. and a pressure of from 0.5 to 10 bar in the presence or absence of inert solvents, removing phosgene, HCl and optionally solvent from the crude MDI at a temperature below 150° C. possibly under vacuum or feeding in inert gas, then separating off said solvent from the isocyanate at a temperature of ≦190° C. and then separating off 2,2′-, 2,4′- and/or 4,4′-MDI and/or mixtures comprising at least two of these isomers by distillation at pressures of from 2 to 50 mbar and temperatures of from 150 to 250° C. and/or by crystallization.