In algebra, the Krull dimension of a ring is one less than the length of a maximal ascending chain of prime ideals.