The formation of nitrogen-containing organic compounds is crucial for understanding chemical evolution and the origin of life in the interstellar medium (ISM). In this study, we explore whether acrylonitrile (AN) and pyrrole (Py) can form new nitrogen-containing compounds after single-photon ionization in their gaseous clusters by vacuum ultraviolet (VUV)-infrared (IR) spectroscopy and theoretical calculations. The results show that a strong linear H-bond is formed in neutral AN-Py, while cyclic or bicyclic H-bonded networks are formed in the neutral AN-Py 2 cluster. It is found that the structure containing a new C−C covalent bond between two moieties in (AN-Py) + is formed besides the formation of H-bonded structures after AN-Py is ionized by VUV light. In (AN-Py 2 ) + cluster cations, new C−C or C−N covalent bonds tend to be formed between two Py, with (Py) 2 + as the core in the cluster. The results reveal that new covalent bonds are more likely to be formed between two Py species when AN and Py are present in the cationic clusters. These results provide spectroscopic evidence of the formation of new nitrogen-containing organic compounds from AN and Py induced by VUV, which are helpful for our understanding of the formation of diverse prebiotic molecules in interstellar space.