A powerful method to solve nonlinear first-order ordinary differential equations, which is based on a geometrical understanding of the corresponding dynamics of the so-called Lie systems, is developed. This method enables us not only to solve some of these equations, but also gives geometrical explanations for some, already known, ad hoc methods of dealing with such problems.