Mining-induced surface cracks in gullies in shallow seams seriously threaten the development of ecological stability and the safety of mine production. The development law of surface cracks in shallow coal seam mining through double gullies terrain was studied, by taking the Cao Jiatan coal mine in the Yushen Mining Area as a project example. The function T and its discriminant were first put forward to describe the relative position both the surface cracks and working face advanced in shallow coal seam mining through double gullies terrain. The relationship between valley parameters of double gullies terrain and the relative position of surface cracks development was discussed through numerical simulation experiment, similar material simulation experiment and theoretical analysis. The results showed that when the working face passed through the G1 gully, the development of surface cracks led the working face. There were four surface cracks with a maximum width of 23 cm, and the maximum vertical displacement was 11 cm; while passing through the G2 gully, the development of surface cracks lagged the working face. There were seven surface cracks with a maximum width of 79 cm, and the maximum vertical displacement was 45 cm. It can be concluded that the relative position of crack development is greatly affected by geological conditions, gully depth, slope angle, span and other factors of the gully, among of which the gully slope angle is the main influencing factor. T and |T| value has a certain correlation with the lagging distance, crack width, vertical displacement and the total number of cracks in a single gully.