We provide an algebraic description of the Teichmüller space and moduli space of flat metrics on a closed manifold or orbifold and study its boundary, which consists of (isometry classes of) flat orbifolds to which the original object may collapse. It is also shown that every closed flat orbifold can be obtained by collapsing closed flat manifolds, and the collapsed limits of closed flat 3-manifolds are classified.representation, and we write K i for R, C, or H, according to this irreducible being of real, complex, or quaternionic type. The Teichmüller space T flat (O) is diffeomorphic to:where GL(m, K) is the group of K-linear automorphisms of K m and O(m, K) stands for O(m), U(m), or Sp(m), when K is, respectively, R, C, or H. In particular, T flat (O) is real-analytic and diffeomorphic to R d .which are given by:In particular, since the holonomy representation of a flat manifold is reducible [23], see Theorem 2.4, it follows that l ≥ 2, and hence d ≥ 2. This implies the following:Corollary C. Every flat manifold admits nonhomothetic flat deformations.The situation is different for flat orbifolds, which can be rigid. Examples of orbifolds with irreducible holonomy representation, i.e., l = 1, which consequently admit no nonhomothetic flat deformations, already appear in dimension 2: for instance, flat equilateral triangles; see Subsection 5.3 for more examples.Since flat orbifolds are locally isometric to Euclidean spaces, the most interesting aspects of their geometry are clearly global. Thus, it is not surprising that issues related to holonomy play a central role in developing this Teichmüller theory. As an elementary case illustrating Theorem B, consider the complete absence of holonomy: flat n-dimensional tori T n can be realized as parallelepipeds spanned by linearly independent vectors v 1 , . . . , v n ∈ R n , with opposite faces identified. Flat metrics on T n correspond to different choices of v 1 , . . . , v n , up to ambiguities arising from rigid motions in R n , or relabelings and subdivisions of the parallelepiped into smaller pieces with boundary identifications. More precisely, it is not difficult to see that M flat (T n ) = O(n)\GL(n, R)/GL(n, Z). In this case, T flat (T n ) = O(n)\GL(n, R) ∼ = R n(n+1)/2 is the space of inner products on R n , and M flat (T n ) = T flat (T n )/GL(n, Z); see Subsection 5.1 for details.Isometry classes of collapsed limits of T n correspond to points in the ideal boundary of M flat (T n ). A more tangible object is the ideal boundary of T flat (T n ), formed by positive-semidefinite n×n matrices and stratified by their rank k, with 0 ≤ k < n, which in a sense correspond to the k-dimensional flat tori T k to which T n can collapse. Nevertheless, we warn the reader that the Gromov-Hausdorff distance does not extend continuously to this boundary. For instance, collapsing the 2-dimensional square torus along a line of slope p/q, with p, q ∈ Z, gcd(p, q) = 1, produces as Gromov-Hausdorff limit the circle S 1 of length (p 2 + q 2 ) −1/2 , while collapsing it along any...