The coincidence locus of two scheme morphisms is the fibre product
The diagonal morphism is a locally closed immersion, and this property is stable under base change of a morphism of schemes, so is locally closed. The universal property of a fibre product says that a morphism factors through exactly when . Thus is the largest locally closed subscheme on which they coincide. If is separated, is a closed immersion, and its base change is closed.