Murexide is prepared by treating alloxantin with ammonia to 100 °C, or by treating uramil (5-aminobarbituric acid) with mercury oxide. It may also be prepared by digesting alloxan with alcoholic ammonia.