This work is focussed on the fate of gas in galaxies, including the relative stripping of hot/cold gas from galaxies in clusters, along with the positive and negative effect of stellar feedback on star formation and how this alters the evolution of galaxies. I will present the results from high resolution hydrodynamical simulations (using GADGET-3) of isolated star forming systems, alongside those from galaxies inside cosmological simulations such as TheThreeHundred and EAGLE. Firstly, we follow the evolution of a giant molecular cloud (GMC) during its 30 Myr lifetime, along with a high-z dwarf spheroidal galaxy during a 1 Gyr starburst. The results emphasise the impact of including near-continuous relatively low powered feedback events such as the OB-star winds, alongside temporally and spatially resolved SN (supernova) explosions, on the fate of the gas in these systems. In particular, we show the two types of feedback interact to efficiently fuel galactic chimneys of hot (1 million K) gas, which is unbound from the galaxy/GMC prior to the onset of significant cooling. This can result in the cold, dense star forming gas in the galactic/ GMC centre being preserved for longer. Furthermore, I will also present work investigating the link between star formation and the distribution of HI and metals in galaxies inside cosmological simulations such as EAGLE, with the aim to aid in the interpretation of the nature of intervening absorbers within the ASKAP-FLASH HI absorption survey. Moreover, the relative impact of environmental gas stripping and the orbits of sub-halos inside clusters on the hot and cold gas reservoirs of galaxies will be discussed in the context of TheThreeHundred.