Let f:YXf:Y\to X be a . The two identity maps from YY to itself have the same composite ff to XX. The universal property of the therefore gives a unique morphism

Δf:YY×XY\Delta_f:Y\longrightarrow Y\times_XY

whose composites with both projections Y×XYYY\times_XY\to Y are the identity. This is the diagonal morphism of ff.

The notation is the scheme-theoretic analogue of the point-set diagonal y(y,y)y\mapsto(y,y). Its scheme structure also records infinitesimal information about the fibers of ff, which is why properties of the diagonal characterize separation and ramification conditions.