A strong correlation is observed between the formation of electromagnetic solitons, generated during the interaction of a short intense laser pulse (30 fs, ∼1018 W/cm2) with a rarefied (<0.1nc) plasma, and pulse self-focusing. Pulse defocusing, which occurs after soliton generation, results in laser-pulse energy depletion. The role of stimulated Raman scattering in soliton generation is analyzed from 2D particle-in-cell simulations. An observed relationship between initial plasma density and soliton generation is presented that might have relevance to wake-field accelerators.