Abstract: A generalization of the concept of Lie systems (systems of first-order differential equations possessing a superposition rule) will be presented and the theory will be illustrated with several examples. Moreover, other recent results on applications in physics of Lie systems compatible with some geometric structures, as symplectic, presymplectic, or more generally Dirac structures,  will also be discussed.