Felix Klein and later Élie Cartan introduced the study of geometric structures on manifolds through algebra (and in particular through group theory).
This is a mutual relationship and one may argue that the geometry motivates the study of group theory (or algebra in general), or vice versa, that the study of group theory (or algebra) is applied to geometry. In some cases this relationship is even "a bijection", e.g., compact flat Riemannian manifolds are classified by Bieberbach groups. Crystallographic groups and its generalisations are perhaps an example which were studied originally as symmetry groups of crystals, but later received an "profound impact" from Riemannian (and pseudo-Riemannian) manifolds and its fundamental groups. In a similar way, there is an impact from number theory, by the theory of discrete groups, and lattices of Lie groups, etc.
The generalisations to other geometric structures and therefore for other algebraic structures or number theory is still active and very modern, e.g., infra-nilmanifolds, affine and projective manifolds, see Milnor, and many more examples.