We consider a higher-derivative generalization of disformal transformations and clarify the conditions under which they form a group with respect to the matrix product and the functional composition. These conditions allow us to systematically construct the inverse transformation in a fully covariant manner. Applying the invertible generalized disformal transformation to known ghost-free scalar-tensor theories, we obtain a novel class of ghost-free scalar-tensor theories, whose action contains the third-or higher-order derivatives of the scalar field as well as nontrivial higherorder derivative couplings to the curvature tensor.*1 Relaxing the degeneracy conditions so that the higher-derivative terms are degenerate only in the unitary gauge, we obtain a broader class of scalar-tensor theories [13][14][15][16][17]. In that case, there is an apparent extra DOF in a generic gauge, but it satisfies an elliptic differential equation and hence is an instantaneous (or "shadowy") mode [14,17]. *2 However, in two spacetime dimensions, the Horndeski class is closed under the disformal transformation of the form (1) [31].