The interactions of ions with molecules and the determination of their dissociation patterns are challenging endeavors of fundamental importance for theoretical and experimental science. In particular, the investigations on bond-breaking and new bond-forming processes triggered by the ionic impact may shed light on the stellar wind interaction with interstellar media, ionic beam irradiations of the living cells, ion-track nanotechnology, radiation hardness analysis of materials, and focused ion beam etching, deposition, and lithography. Due to its vital role in the natural environment, the pyridine molecule has become the subject of both basic and applied research in recent years. Therefore, dissociation of the gas phase pyridine (C5H5N) into neutral excited atomic and molecular fragments following protons (H+) and dihydrogen cations (H2+) impact has been investigated experimentally in the 5–1000 eV energy range. The collision-induced emission spectroscopy has been exploited to detect luminescence in the wavelength range from 190 to 520 nm at the different kinetic energies of both cations. High-resolution optical fragmentation spectra reveal emission bands due to the CH(A2Δ → X2Πr; B2Σ+ → X2Πr; C2Σ+ → X2Πr) and CN(B2Σ+ → X2Σ+) transitions as well as atomic H and C lines. Their spectral line shapes and qualitative band intensities are examined in detail. The analysis shows that the H2+ irradiation enhances pyridine ring fragmentation and creates various fragments more pronounced than H+ cations. The plausible collisional processes and fragmentation pathways leading to the identified products are discussed and compared with the latest results obtained in cation-induced fragmentation of pyridine.