The Krull dimension of an affine variety is the supremum of the lengths of strict chains of irreducible closed subsets, equivalently the Krull dimension of its coordinate ring. For an irreducible affine variety it equals the minimum Zariski tangent-space dimension.
Codex Wiki