Cotton thistle is native to Europe and Asia. The plant prefers habitats with dry summers, such as the Mediterranean region, growing best in sandy clay and calcareous soils which are rich in ammonium salts. It grows in ruderal places, as well as dry pastures and disturbed fields. Its preferred habitats are natural areas, disturbed sites, roadsides, fields, and especially sites with fertile soils, agricultural areas, range/grasslands, riparian zones, scrub/shrublands valleys and plains along with water courses. Temperature and moisture, rather than soil nutrient concentrations, determine the ecological performance of Onopordum species.