Solitons formation through classical dynamics of two scalar fields with the potential having a saddle point and one minimum in (2+1)-space-time is discussed. We show that under certain conditions in the early Universe both domain walls and strings can be formed even if scalar fields are inflaton ones.