In Northwestern China, the Ming Great Wall generally involves multiple layers of rammed earth, and rammed pits with regular spatial characteristics are always distributed on the horizontal interfaces between rammed layers. Obviously, the spatial regularity of rammed pits cannot only reflect the level of ramming technique in the Ming dynasty, but also control the geotechnical properties of rammed layer interfaces (RLIs). Hence, in the present study, one typical RLI with visible rammed pits was obtained from the Ming Great Wall in Yongchang County, Northwestern China, and the corresponding point cloud data were collected by 3D scanning technique. Then, this RLI was reconstructed using numerous micro slopes in ArcGIS, and the distribution maps of micro-slope heights, angles, plan curvatures and profile curvatures were produced as well. Based on these distribution maps and Random Forest (RF) algorithm, those micro slopes which can reflect the true rammed pit morphology (called the representative micro slopes) were identified, and ten zones where the representative micro slopes concentrate were selected as effective analysis domains. Furthermore, within effective analysis domains, the contour lines were generated to show the outline features of rammed pits, and the values of micro-slope heights, angles, plan curvatures and profile curvatures were statistically analyzed to reveal the surface features of rammed pits. Moreover, the distribution features of rammed pits were exhibited by their centroid positions, which can be calculated by the corresponding contour line shapes. Ultimately, this study indicates that rammed pits of the Ming Great Wall show more regularity than randomness in terms of geometric shapes and spatial distribution. Concretely, the outlines of most rammed pits approximate the circular or elliptical shapes. All the rammed pit surfaces are rough rather than smooth, and most of them can be mathematically expressed by quadratic polynomial equations. As for the distribution features, rammed pits are overall distributed in the triangular shapes, and distances between the equivalent centroids of adjacent rammed pits range from 8.95 cm to 17.86 cm. These findings prove that standardized ramming technique was applied in the Ming dynasty, resulting in high-quality construction of the Great Wall. Meanwhile, the rammers used to compact earthen materials possess rounded heads. However, the imperfect polishing of rammers and the inevitable operational errors could also lead to slight spatial randomness of rammed pits.