Nucleobases, together with deoxyribose/ribose and phosphoric acid, are the building blocks of DNA and RNA for all known life. The presence of nucleobase-like compounds in carbonaceous chondrites delivered to the Earth raises the question of an extraterrestrial origin for the molecules that triggered life on our planet. Whether these molecules are formed in interstellar/protostellar environments, in small parent bodies in the solar system, or both, is currently unclear. Recent experiments show that the UV irradiation of pyrimidine (C 4 H 4 N 2 ) in H 2 O-rich ice mixtures that contain NH 3 , CH 3 OH, or CH 4 leads to the formation of the pyrimidine-based nucleobases uracil, cytosine, and thymine. In this work, we discuss the low-temperature UV irradiation of pyrimidine in realistic astrophysical ice mixtures containing H 2 O, CH 3 OH, and NH 3 , with or without CH 4 , to search for the production of nucleobases and other prebiotic compounds. These experiments show the presence of uracil, urea, glycerol, hexamethylenetetramine, small amino acids, and small carboxylic acids in all samples. Cytosine was only found in one sample produced from ices irradiated with a higher UV dose, while thymine was not found in any sample, even after irradiation with a higher UV dose. Results are discussed to evaluate the role of the photochemistry of pyrimidine in the inventory of organic molecules detected in meteorites and their astrophysical/astrobiological implications.