[N+:1]([C:4]1[CH:5]=[CH:6][CH:7]=[C:8]2[C:12]=1[NH:11][C:10]([C:13]([O:15]CC)=O)=[CH:9]2)([O-:3])=[O:2].[NH3:18]>>[N+:1]([C:4]1[CH:5]=[CH:6][CH:7]=[C:8]2[C:12]=1[NH:11][C:10]([C:13]([NH2:18])=[O:15])=[CH:9]2)([O-:3])=[O:2]A suspension of 133 mg (0.57 mmol) of ethyl 7-nitroindole-2-carboxylate in 3.84 ml of 28% aqueous ammonia is heated at 50° C. for 18 h in a stoppered glass tube. The reaction medium is filtered over sintered glass. The yellow solid obtained is washed with water and with cyclohexane and then dried under vacuum. 70 mg of 7-nitro-1H-indole-2-carboxamide are obtained in the form of a yellow solid.