Sulcotrione is a member of triketone herbicides, a class of HPPD (4-hydroxyphenylpyruvate dioxygenase) inhibitors with broad-spectrum herbicidal activity. Modifications of glycosylation mediated by glycosyltransferases (GT) are involved in plant detoxification. In this study, we analyzed chip data published online and found that eight glycosyltransferases from group A of the apple glycosyltransferase family 1 may be involved in the metabolic mechanism of detoxification of triketone herbicides. To verify this prediction, we induced apple seedlings with six types of triketone herbicides, and then detected the expression levels of eight glycosyltransferase genes through real-time PCR. We found that triketone herbicides induced up-regulation of eight glycosyltransferase genes to varying degrees, with MdUGT91AJ2 being the most significantly up-regulated by sulcotrione-induced glycosyltransferase gene expression. Then, through in vitro enzymatic reactions and HPLC identification of glycoside substrates, it was found that the glycosyltransferase MdUGT91AJ2 had the highest specific enzyme activity against the triketone herbicide sulcotrione. Furthermore, the in vivo mechanism of the glycosyltransferase MdUGT91AJ2 in the detoxification metabolism of sulcotrione was further validated by overexpressing the strain in the plant. HPLC analysis showed that the content of sulcotrione glycosides in the overexpressing strain of MdUGT91AJ2 was significantly higher than that in the wild type. This result indicated that the apple glycosyltransferase MdUGT91AJ2 can still glycosylate and modify sulfotrione in plants, and participate in its detoxification metabolism. In summary, this study identified for the first time a novel apple glycosyltransferase MdUGT91AJ2 and elucidated its mechanism of action in the detoxification and metabolism of the triketone herbicide sulfotriene.