A short-lived perennial herb of shingle banks and stony beaches; also, more rarely, amongst loose rock and on eroding cliffs of sand and clay, and on the bare tops of chalk cliffs. The few inland records are of casual occurrences. Lowland.
G. flavum has been lost from some sites in Britain in recent years as a result of coastal defence work and trampling pressures on tourist beaches. However, its overall distribution shows little change since the 1962 Atlas.
Mediterranean-Atlantic element; widely naturalised outside its native range.