The interaction of a high-power laser beam with metal and dielectric surfaces at different angles of incidence was studied. Under certain conditions to be described in the paper a portion of the laser beam was found to propagate along the irradiated surface. The waveguide effect is shown to be due to an optically inhomogeneous medium with a variable refractive index.