Because of its immediate practical applications, geometry was one of the first branches of mathematics to be developed. Likewise, it was the first field to be put on an axiomatic basis, by Euclid. The Greeks were interested in many questions about ruler and compass constructions. The next most significant development had to wait until a millennium later, and that was analytic geometry, in which coordinate systems are introduced and points are represented as ordered pairs or triples of numbers. This sort of representation has since then allowed us to construct new geometries other than the standard Euclidean version.
Other geometries can be constructed by choosing a new underlying space to work with (Euclidean geometry uses Euclidean space, Rn) or by choosing a new group of transformations to work with (Euclidean geometry uses the special orthogonal transformations, SO(n)). In general, the more congruences we have, the fewer invariants there are. As an example, in affine geometry any linear transformation is allowed, and so the first three figures are all congruent; distances and angles are no longer invariants, but linearity is.