These lecture notes originate from a course delivered at the Scuola Normale in Pisa in 2006. Generally speaking, the prerequisites do not go beyond basic mathematical material and are accessible to many undergraduates. The contents mainly concern diophantine problems on affine curves, in practice describing the integer solutions of equations in two variables. This case historically suggested some major ideas for more general problems. Starting with...