In the title compound, 2C5H7N2
+·C10H4O8
2−, the 2-aminopyridinium (2-apyH) cation and 2,5-dicarboxybenzene-1,4-dicarboxylate (btcH2) anion are both nearly planar, with r.m.s. deviations of 0.015 and 0.050 Å, respectively. The angle between the latter least-squares planes is 17.68 (9)°. The overall crystal structure results from the packing of two-dimensional networks, formed by alternating 2-apyH and btcH2 linked by hydrogen bonds, parallel to (100).