The conversion of an exogenous substance by a biological system resulting in the production on an active metabolite.