The northwest margin of Junggar Basin as a continental foreland-basin exists the profitable target of oil and gas. The sedimentary facies space is important for oil and gas exploration. The Permian clastic at the top of Carboniferous volcanic in the Zhongguai-Wuba area at the northwest margin of Junggar Basin is identified by logging data. Based on the sedimentary facies space, the authors consider that the deposits would be sourced from volcanic rocks in the Zhongguai bulge near the western part of the Hongche thrust faulting belt. The phase of tectonic uplift caused the sedimentary scope shrunk gradually from lower segment to upper segment during the Jiamuhe and Xiazijie Periods. At the Wuerhe period, the spread of water area and depositional base level rise caused continues deposition. The unique character of the structure and sedimentation in this area formed the preferable targets of oil and gas accumulation in the future exploration of oil and gas.