Stars are formed from clouds of gas and then disperse gas back into interstellar and intergalactic space. This ‘baryon cycle’ determines the development and evolution of galaxies. I study the baryon cycle with infared, millimeter and radio observations and computer simulations.