Living in greener areas, or close to green and blue spaces (GBS; eg, parks, lakes, or beaches), is associated with better mental health, but longitudinal evidence when GBS exposures precede outcomes is less available. This study aims to analyse the effect of living in or moving to areas with more green space or better access to GBS on subsequent adult mental health over time, while explicitly considering health inequalities.