1. Dosidicus gigas is an ecologically and economically important squid species extensively distributed in the eastern Pacific Ocean. Its habitat is extremely sensitive to climatic and environmental variability.2. The relationship between habitat pattern of D. gigas and El Niño-Southern Oscillation (ENSO, divided into the El Niño, ENSO-neutral, and La Niña events) was assessed from 1950 to 2015, using a habitat suitability index (HSI) modelling approach including two crucial environmental variables: sea surface temperature (SST) and sea surface height anomaly (SSHA).3. On the basis of cross-correlation analysis, it showed that both SST anomaly and SSHA were significantly positively related to the ENSO index. Moreover, a significantly negative association was found between the HSI values and the ENSO index.4. Due to the El Niño events, SST off Peru became higher and sea level rose, resulting in contracted areas of suitable SST and SSHA; consequently, suitable habitats for D. gigas dramatically decreased. In contrast, during the ENSO-neutral and La Niña years, the extent of suitable SST and SSHA increased due to the colder water and lower sea level, and suitable habitat for D. gigas expanded. 5. Moreover, the latitudinal gravity centre of HSI was significantly positively associated with the ENSO index. Relative to the ENSO-neutral and La Niña years, a southward movement of the monthly preferred SST isotherm for D. gigas during the El Niño years could explain the occurrence of more suitable habitats in southern waters off Peru.6. These findings suggested that the ENSO event plays an important role in regulating environmental conditions off Peru and further affected the spatio-temporal distribution of D. gigas habitat.