The bioactivation of xenobiotics primarily occurs in the liver through phase I metabolism, which involves enzymes such as cytochrome P450 enzymes. These enzymes introduce reactive groups into the xenobiotics, often converting them into electrophilic or free radical intermediates. Phase II metabolism can further modify these products, making them more water-soluble and easier to excrete, but it can also inadvertently generate toxic compounds.