Frustration – namely the presence of competing interactions – gives rise to highly complex effects in physics. Ice – be it the well known water ice or its magnetic equivalent, the so-called spin-ice – offers a remarkable example in this context. For short-range interactions and classical degrees of freedom, its ground state is infinitely degenerate, and exhibits long-range correlations induced by a local constraint, characterizing the so-called Coulomb phase. Its elementary excitations correspond to the flip of a dipole “fractionalizing” into two monopoles. In this thesis we are interested in the stability of this Coulomb phase in the two-dimensional ice – realized in the form of a proton ice in organic compounds as well as of spin ice in nanomagnetic systems. In the classical case, dipolar interactions – present in the experimental systems – destabilize the Coulomb phase in the ground state. However, a slight deformation of the simple planar geometry allows to recover this phase in a regime where different ordered states compete with each other. In the quantum case, fluctuations due to a transverse magnetic field induce a symmetry breaking in the ground state, that melts at low temperature into a quantum Coulomb phase, realizing a quantum spin liquid with fractionalized excitations. Our results were obtained with analytical (classical and quantum normal-mode analysis and perturbation theory) as well as numerical techniques (Monte Carlo) based on original algorithms.