The Pythagorean theorem is used to solve problems involving right triangles. It relates the lengths of the sides of a right triangle, stating that the square of the hypotenuse (the side opposite the right angle) is equal to the sum of the squares of the other two sides.