In this colloquium, I will discuss various simulations concerning gravity on different scales: applied to structure formation in the Universe (the CosmoGrid simulation) and to star clusters (with AMUSE). The first part concerns CosmoGrid, a high-resolution LambdaCDM simulation, which we ran in parallel over multiple supercomputers, including one in Japan and one in the Netherlands. With CosmoGrid, I study the formation and environment of dark matter haloes in voids. In the second part, I will discuss AMUSE, a framework that enables the combination of various simulation codes like gravitational dynamics and stellar evolution. With AMUSE, I perform simulations of star clusters within an evolving environment, such as a dark matter halo or a forming disk galaxy, and study their disruption as a function of environment.