The Stefan problem in a semi-infinite media under laser irradiation is considered. It is related to the melting and solidification processes, resulting in certain surface structure after the solidification. A simple model, as well as a more sophisticated one is proposed to describe this process. The latter model allows us to calculate the surface profile by solving a system of two nonlinear differential equations, if the shape of the solid-liquid interface is known. It has to be found as a solution of two-phases Stefan problem. The results of example calculations by the fourth-order Runge-Kutta method are presented, assuming that the solid-liquid interface has a parabolic shape. The calculated crossection of the surface structure shows a characteristic cone in the center, in agreement with experimental observations.