In this paper we give a purely algebraic construction of the theory of residues of a Pfaff system relative to an invariant subscheme. This construction is valid over an arbitrary base scheme of any characteristic.