An ecotype is a genetically differentiated population within a species that is adapted to a particular set of local environmental conditions. Selection in contrasting climates, soils, elevations, salinities, or disturbance regimes can produce inherited differences in flowering time, growth form, physiology, or tolerance. These traits persist when populations are grown in a common environment, demonstrating that they are not merely temporary environmental effects. Gene flow may still occur among ecotypes, so they are not necessarily separate species, but selection maintains geographic different
Ref:
NCERT Biology Class 12, Ch. 15 Biodiversity and Conservation