The present invention belongs to the field of agricultural herbicides, and in particular relates to a pyrimidine urea compound containing isoxazolines and a use thereof. The pyrimidine urea compound containing isoxazolines is as shown in general formula (I). The compounds of general formula (I) have a very good herbicidal activity, and can effectively control barnyard grass, green bristlegrass, Cyperus difformis, Juncellus serotinus, Digitaria sanguinalis, Arthraxon hispidus, Abutilon theophrasti, Zinnia elegans, Amaranthus retroflexus, purslane, Xanthium sibiricum, Solanum nigrum,Senna obtusifolia, Hibiscus trionum, Glycine ussuriensis, and the like, and can obtain a very good herbicidal effect at low doses, is relatively safe for crops such as corn, wheat and rice, and can be used as a herbicide in agriculture.