The habitats where elder~(Sambucus nigra) grows:

Altantic hazel wood
Atlantic oak wood
Beech wood
Bracken scrub
Brownfield
Damp fertile disturbed
Hedgerow scrub
Limestone pavement
Lowland calcareous grassland
Lowland dry oak and birch wood
Lowland mixed oak and ash wood
Mixed scrub
Sand dune
Traditional orchard
Upland mixed ash wood
Wet woodland
Wood pasture
Yew wood