We report calculations of spin relaxation dynamics of two-dimensional electron gas with spinorbit interaction at the edge region. It is found that the relaxation of spin polarization near the edge is more slow than relaxation in the bulk. That results finally in the spin accumulation at the edge. Time dependence of spin polarization density is calculated analytically and numerically. The mechanism of slower spin relaxation near the edge is related to electrons reflections from the boundary and the lack of the translation symmetry. These reflections partially compensate electron spin precession generated by spin-orbit interaction, consequently making the spin polarization near the edge long living. This effect is accompanied by spin polarization oscillations and spin polarization transfer from the perpendicular to in-plane component. The prospects for creating a semiconductor-based spintronic device [1,2,3,4,5,6] have generated an emphasis on the studies of properties of electron spin polarization in semiconductor nanostructures [7,8,9,10,11,12,13,14,15,16,17]. Great interest has been expressed in dynamics of electron spin polarization [7,8,9,10,11,12]. For instance, spin relaxation dynamics has been studied in two-dimensional electron gas (2DEG) [7,8], twodimensional channels [9,10], open Sinai billiards (2DEG with a lattice of antidots) [11], and ballistic quantum dots [12]. It was found that the sample geometry [11] as well as specific initial conditions [7,8] could have a significant effect on electron spin relaxation.D'yakonov-Perel' (DP) spin relaxation mechanism [18] is the leading spin relaxation mechanism in many important experimental situations. In the framework of DP theory, initially homogeneous electron spin polarization exponentially relaxes to zero (or to some finite equilibrium value) with time. However, DP theory was formulated for the bulk of a sample. Considering electron spin relaxation near the edge of 2DEG, one would expect the same relaxation scenario. This expectation, however, is not correct. We demonstrate in this Letter that the spin relaxation dynamics near the edge is rather unusual and can not be described by a simple exponential law, as follows from the DP theory. We observe a longer spin relaxation time near the edge, spin polarization oscillations and spin polarization transfer from the perpendicular (to 2DEG) to in-plane component.Let us consider a two-dimensional electron gas with the Rashba spin-orbit interaction [19], which couples electron space and spin degrees of freedom:where α is a constant, σ is the Pauli matrix vector corresponding to the electron spin, and p is the momentum of the electron confined in two-dimensional geometry. From the point of view of electron spin, the effect of spin-orbit interaction can be regarded as an effective magnetic field acting on electron spin. Momentum scatterings reorient the direction of this field, thus leading to average spin relaxation (DP relaxation). Intuitively, electron reflections from the 2DEG edges should increase spin relaxa...