Stellar clusters are present in the local Universe in a variety of environments, from the current cluster formation sites in the disks of the Antennae galaxies to the old globular cluster population that mostly populates the halo of the Milky Way, implying that their evolution is tightly linked to that of their host galaxy. I will discuss how these clusters form and co-evolve alonside their host galaxies over cosmic time and I will present results from state-of-the-art hydrodynamical cosmological simulations.