In the title molecular salt [systematic name: 2-methylpyridinium 5-(2,4-dinitrophenyl)-1,3-dimethyl-2,6-dioxo-1,2,3,6-tetrahydropyrimidin-4-olate], C6H8N+·C12H9N4O7
−, the cation and anion are linked a through strong N—H⋯O hydrogen bond. In the crystal, C—H⋯O interactions link the ions, generating a chain along [010].