Dihedral group of order 8

caption
The dihedral group of order 8 as the symmetry group of a square

In mathematics, D4 (sometimes alternatively denoted by D8) is the dihedral group of degree 4 and order 8. It is the symmetry group of a square. A square maintains its appearance under 90° rotations about its center (4-fold rotational symmetry), and under reflections across four lines passing through the center – two lines parallel to the sides and its two diagonals (reflection symmetry).