Ex situ bioremediation involves the excavation of contaminated materials and their subsequent treatment in a controlled setting such as a bioreactor or treatment facility. This contrasts with in situ bioremediation, which treats the contamination on site. Ex situ methods can be more efficient and controlled but often come with higher costs and logistical challenges.