By means of computer simulation, we demonstrate the possibility of formation of a new type of surface solitons in nonlinear layered structures. The initial soliton is located inside a photonic crystal and occupies several of its layers. Its profile can be found from the solution to the eigenvalue problem for a nonlinear Schrödinger equation with periodic linear and nonlinear coefficients. Surface solitons are formed as a result of perturbation of the wave vector, which leads to soliton motion across photonic crystal layers. After several reflections from the side boundaries of the crystal, under certain conditions, the soliton becomes attached to the side boundary. A characteristic feature of the discussed soliton is the fact that its penetration depth into the photonic crystal medium is equal to the thickness of several crystal layers.Among the different problems related to lasermatter interaction, the formation of solitons and localization of light inside photonic crystals (PC) attracts special attention [1][2][3][4][5][6][7][8][9][10][11][12][13], partially due to the possibility of their wide use in information technologies. Propagation of a soliton along PC layers is of special interest [4][5][6][7]. In the present work, based on computer modeling, we show the possibility of forming an oscillating soliton at the PC interface with the surrounding medium. It is important that only part of such a soliton is located inside the PC. The other part is located outside of the PC. Thus, one can speak about localization of energy of light in the near-surface layer at the PC boundary, i.e., about the surface soliton.We stress that the discussed solitons and those studied in [8-13] differ mainly in their transverse dimensions: the solitons under consideration penetrate into the surrounding medium by a distance equal to several PC layers and occupy several PC layers. It is important that these solitons can be created at relatively low laser pulse intensities.Let us analyze propagation of a soliton occupying, e.g., more than ten layers along a PC under the conditions of perturbation of its direction of propagation due to the wave vector having a transverse component; i.e., the soliton is incident on the layered structure at an angle. A detailed formulation of the problem can be found in [14,15].For simplicity, we describe propagation of the soliton within the framework of the nonlinear Schrödinger equation that takes into account only propagation across the layers. In this case, assuming linear dependence of wave vector k on frequency ω and in the absence of a preferred propagation direction (i.e., complex amplitude A(z, t) is slowly varying only in time), the propagation of the soliton is described by the equation [16] (1)The following notations were used above:(2)Here, is the time coordinate; is the spatial coordinate;and are the laser wavelength and the characteristic wavelength of the layered structure, respectively;is the third-order susceptibility; and are the widths of alternating layers with dielectric permittiviti...