San Pedro de la Cueva is a municipality in the state of Sonora in north-western Mexico.
Its seat is San Pedro de la Cueva.
The municipal area is 1,926.36 km<sup>2</sup>. The population in 2020 was 1,458.
Neighboring municipalities are Moctezuma and Tepache to the north, Sahuaripa to the east, Bacanora to the south, and Villa Pesqueira to the southwest.