The cyctization of 4-chloro-2-(propylamino)aniline (I) with oxalyl chloride (II) in hot o-dichlorobenzene gives 1-propyl-7-chloroquinoxaline-2,3-dione (III), which by reaction with SOCl2 in DMF is converted to 3,7-dichloro-1-propyl-1H-quinoxalin-2-one (IV). The condensation of (IV) with ethyl carbazate (V) in refluxing acetonitrile affords ethyl 3-(7-chloro-1-propyl-2-oxo-1H-quinoxalin-3-yl)carbazate (VI), which is finally cyclized by heating at 260 C.