The habitats where common sow thistle~(Sonchus oleraceus) grows:

Arable
Coastal vegetated shingle
Disturbed nutrient rich
Gateways and tracks
Hard cliff and cliff slope
Machair sand dune
Maritime cliff
Open habitat arable weed fertile loam and clay
Open habitat arable weed less fertile acid
Pond ditch and canal
Sand dune