A diagonal is a straight line that connects two non-adjacent corners or vertices of a polygon or a geometric shape. It is a line segment that cuts across the shape, creating two triangles or smaller shapes within the larger shape. In a square or rectangle, the diagonals are equal in length and bisect each other at a right angle.