Anorectal malformation (ARM) is a prevalent early pregnancy digestive tract anomaly. The intricate anatomy of the embryonic cloaca region makes it challenging for traditional high-throughput sequencing methods to capture location-specific information. Spatial transcriptomics was used to sequence libraries of frozen sections from embryonic rats at gestational days (GD) 14 to 16, covering both normal and ARM cases. Bioinformatics analyses and predictions were performed using methods such as WGCNA, GSEA, and PROGENy. Immunofluorescence staining was used to verify gene expression levels. Gene expression data was obtained with anatomical annotations of clusters, focusing on the cloaca region's location-specific traits. WGCNA revealed gene modules linked to normal and ARM cloacal anatomy development, with cooperation between modules on GD14 and GD15. Differential gene expression profiles and functional enrichment were presented. Notably, protein levels of Pcsk9, Hmgb2, and Sod1 were found to be downregulated in the GD15 ARM hindgut. The PROGENy algorithm predicted the activity and interplay of common signaling pathways in embryonic sections, highlighting their synergistic and complementary effects. A competing endogenous RNA (ceRNA) regulatory network was constructed from whole transcriptome data. Spatial transcriptomics provided location-specific cloaca region gene expression. Diverse bioinformatics analyses deepened our understanding of ARM's molecular interactions, guiding future research and providing insights into gene regulation in ARM development.