Two sides of a square and a diagonal form a right triangle.
Recall that the Pythagorean Theorem states that in a right triangle the square of the length of the hypotenuse is the sum of the square of the length of the legs.
We can use this to express the length of the diagonal of a square in terms of the length of the sides.