Taking the Cretaceous Bashijiqike sandstones in the Kuqa foreland basin as an example and starting from the analyses of the tectonic evolution, ancient stress, sedimentary system distribution, diagenesis type and intensity of the basin, the authors studied the porosity formation mechanisms and changes of the main pay zones in the Kuqa Depression and built a porosity forecast model integrating deposition, diagenesis and structure based on a large number of experimental data and logging test data and using a multi-disciplinary knowledge of geology, mathematics and statistics. The results of the model in the sandstones of the Bashijiqike Formation matches well with the logging integration porosity, providing a basis for the space evaluation and forecast of deep, effective, high-quality reservoirs of different pore types in the Kuqa Depression.