The irradiation of luminol (1) in dimethylformamide affords 3-aminophthalimide (4), the 2,3-dihydrophthalazine-1,4-dione ring being contracted.