The theme of this monograph is the nonlinear Schrödinger equation. This equation models slowly varying wave envelopes in dispersive media and arises in various physical systems such as water waves, plasma physics, solid state physics and nonlinear optics. More specifically, this book treats the defocusing nonlinear Schrödinger (dNLS) equation on the circle with a dynamical systems viewpoint. By developing the normal form theory it is shown that this equation is an integrable partial differential equation in the strongest possible sense. In particular, all solutions of the dNLS equation on the circle are periodic, quasi-periodic or almost-periodic in time and Hamiltonian perturbations of this equation can be studied near solutions far away from the equilibrium.