abstract: I shall present recent results about the complex dynamics of the water waves equations of a bi-dimensional fluid under the action of gravity and eventually capillary forces, with space periodic boundary conditions. This is an infinite dimensional Hamiltonian system. We shall discuss both long time existence results as well as bifurcation of small amplitude time quasi-periodic solutions.