The photochemical arylation of pyrimidines and pyrazines proceeds smoothly under moderate UVA irradiation and allows us to obtain high-value biaryl compounds through radical intermediates.