The ultraviolet and infrared spectra of 5-azauracil and some of its derivatives have been measured. On the basis of the infrared spectra it has unambiguously been proved that 5-azauracil and its derivatives exist in the dilactam form in solutions of dioxane and ethanol. The results of the measurements of the ultraviolet spectra enable us to assume the existence of the dilactam structure of 5-azauracil in neutral aqueous solutions. Using the dependence of the ultraviolet spectra on the pH value of aqueous solutions the order of dissociation for 5-azauracil has been determined and the second dissociation constant of this compound measured.