Dry-wet alternation is one of the main driving factors of soil nutrient cycle. Therefore, it is important to study the effect of dry-wet alternation on soil nutrient activation in order to reduce the amount of fertilizer applied to agricultural land. The effects of long-term drying, long-term flooding and dry-wet alternation on the nutrients of different soils were studied in this paper. The results showed that: (1) The total nitrogen content of feldspathic sandstone was lower than 0.3g/kg after long-term drying, flooding and dry-wet alternation. The total nitrogen content of loess soil tended to increase after drying and wetting alternately, but the change of water flooding treatment was not obvious. (2) There is a process of release and absorption of feldspathic sandstone during long-term drying and alternating wetting and drying. Long-term flooding of available phosphorus is a process of first decreasing, then increasing and then decreasing. During the long-term drying, flooding and dry-wet alternation process, the available phosphorus content of loess soil changed significantly, showing an upward trend. The highest available phosphorus content reached 41.62mg/kg after 5 days of dry-wet alternation culture, which increased by 48.10%. (3) After 15 days of incubation, the available potassium of feldspathic sandstone increased by 40.1% to 101.21mg/kg. Available potassium in loess soil increased gradually under these three conditions, especially in dry-wet alternating conditions, after 15 days, it reached 267.58mg/kg, which increased by 109.34%. The results show that loess soil is very susceptible to environmental conditions, and can be used as one of the materials for nutrient stimulation.