The habitats where yarrow~(Achillea millefolium) grows:

Alpine and subalpine calcareous grassland
Arable
Brownfield
Calaminarian grassland
Coastal floodplain grazing marsh
Coastal vegetated shingle
Crevice scree and spoil
Damp fertile disturbed
Disturbed nutrient rich
Gateways and tracks
Hard cliff and cliff slope
Hedgerow scrub
High montane heath and snow bed
Limestone pavement
Lowland calcareous grassland
Lowland dry acid grassland
Lowland dry heath
Lowland fen
Lowland meadow and pasture
Machair sand dune
Maritime cliff
Mesotrophic grassland
Mixed scrub
Moist damp verges and banks
Northern hay meadow
Nutrient rich around buildings
Open habitat arable weed fertile loam and clay
Open habitat arable weed less fertile acid
Pond ditch and canal
Sand dune
Traditional orchard
Upland acid grassland
Upland acid rush pasture
Upland calcareous grassland
Upland dry heath
Upland spring flush