When applying an external electric field to a dielectric material, electric dipoles are created at a microscopic level. These dipoles are responsible for the apparition, inside the material, of an induced field. The fluctuations of the electric field at a microscopic level, the density fluctuations or any kind of microscopic inhomogeneities must be taken into account when describing the optical properties of a system. These effects are often referred as "local-field effects". These local-field effects have been widely studied in the past and in particular their effects on the optical properties of bulk materials are now well established. In the case of surfaces, the theoretical description and the numerical simulations are more intricate than for bulk materials. The abrupt change in the electronic density leads to a huge variation of the electric field at the interface with vacuum. As a result, strong effects of the local-field are expected, in particular in the direction perpendicular to the plane of the surface. The goal of this thesis is to quantify how important these effects are for the linear and second-order optical properties of surfaces. This thesis is organised in four parts. The Part I focuses on the theoretical background, necessary to understand the development reported in this thesis. Part II presents the first theoretical results of this thesis, improving the microscopic description of second-harmonic generation at crystal surfaces. A macroscopic theory of second-harmonic generav Contents tion from crystal surfaces is developed in Part III, in order to account for local-field effects. The last part of this thesis, Part IV, is dedicated to the application of the theory developed to silicon surfaces. The numerical simulations have been focused on the Si(001) surface, and the macroscopic formalism developed during this thesis has been applied to three surface reconstructions, namely the clean Si(001)2×1, the monohydride Si(001)2×1:H and the dihydride Si(001)1×1:2H surfaces. Comparison with available experimental results is also reported.