When the supply of inorganic carbon is limiting, photosynthetic cyanobacteria excrete nitrite, a toxic intermediate in the ammonia assimilation pathway from nitrate. It has been hypothesized that the excreted nitrite represents excess nitrogen that cannot be further assimilated due to the missing carbon, but the underlying molecular mechanisms are unclear. Here, we identified a protein that interacts with nitrite reductase, regulates nitrogen metabolism and promotes nitrite excretion. The protein, which we named NirP1, is encoded by an unannotated gene that is upregulated under low carbon conditions and controlled by transcription factor NtcA, a central regulator of nitrogen homeostasis. Ectopic overexpression of nirP1 in Synechocystis sp. PCC 6803 resulted in a chlorotic phenotype, delayed growth, severe changes in amino acid pools, and nitrite excretion. Coimmunoprecipitation experiments indicated that NirP1 interacts with nitrite reductase, a central enzyme in the assimilation of ammonia from nitrate/nitrite. Our results reveal that NirP1 is widely conserved in cyanobacteria and plays a crucial role in the coordination of C/N primary metabolism by targeting nitrite reductase.