African swine fever (ASF) is a tick-borne infectious disease initially described in Shenyang province China in 2018 but is now currently present nationwide. ASF has high infectivity and mortality rates, which often results in transportation and trade bans, and high expenses to prevent and control the, hence causing huge economic losses and a huge negative impact on the Chinese pig farming industry. Ecological niche modeling has long been adopted in the epidemiology of infectious diseases, in particular vector-borne diseases. This study aimed to establish an ecological niche model combined with data from ASF incidence rates in China from August 2018 to December 2021 in order to predict areas for African swine fever virus (ASFV) distribution in China. The model was developed in R software using the biomod2 package and ensemble modeling techniques. Environmental and topographic variables included were mean diurnal range (°C), isothermality, mean temperature of wettest quarter (°C), precipitation seasonality (cv), mean precipitation of warmest quarter(mm), mean precipitation of coldest quarter (mm), normalized difference vegetation index, wind speed (m/s), solar radiation (kJ /day), and elevation/altitude (m). Contribution rates of the variables normalized difference vegetation index, mean temperature of wettest quarter, mean precipitation of coldest quarter, and mean precipitation of warmest quarter were, respectively, 47.61%, 28.85%, 10.85%, and 7.27% (according to CA), which accounted for over 80% of contribution rates related to variables. According to model prediction, most of areas revealed as suitable for ASF distribution are located in the southeast coast or central region of China, wherein environmental conditions are suitable for soft ticks’ survival. In contrast, areas unsuitable for ASFV distribution in China are associated with arid climate and poor vegetation, which are less conducive to soft ticks’ survival, hence to ASFV transmission. In addition, prediction spatial suitability for future ASFV distribution suggests narrower areas for ASFV spread. Thus, the ensemble model designed herein could be used to conceive more efficient prevention and control measure against ASF according to different geographical locations in China.