Solving Pell's equation using continued fractions is presented. The connection with generating Pythagorean triples is given.