In this paper, we study the Ricci soliton in the Riemannian products M = R n × B and warped products M = R × f B of the Euclidean space and Riemannian manifolds, and the gradient Ricci soliton in the warped products M = S 1 × f B of 1-dimensional circle and Riemannian manifolds. Moreover, we introduce the concept of the generalized Ricci soliton and we suggest the method of construction of the Riemannian manifold (M, g) with a Ricci soliton g .Finally, we also study the Lorentzian warped products with the Ricci soliton.