Sveti Petar u Šumi (Italian: San Pietro in Selve, archaic German: Sankt Peter im Walde) is a village and municipality (općina) in Istria County, Croatia.
It is located within the centre of the Istrian peninsula near the regional capital Pazin, about 6 km (3.7 mi) northwest of Žminj. The population is 1,065 (as of the 2011 census).
The settlement in the March of Istria arose around the Benedictine Saint Peter and Paul Abbey, probably founded in the 1130s and first mentioned about 1174/76. The abandoned monastery was dedicated to the Order of Saint Paul the First Hermit by the Habsburg emperor Frederick III with the consent of Pope Pius II in 1459. The present-day Baroque monastery complex was finished in 1731. The Pauline abbey was dissolved by Emperor Joseph II in 1782 but re-established in 1993.