Castiglione dei Pepoli is a comune located in the Emilia-Romagna region of northern Italy. It is situated within the Metropolitan City of Bologna and lies in the Bolognese Apennines, positioned near the border with Tuscany.
The municipality is located approximately 40 km (25 mi) south-west of the city of Bologna. It serves as a rural settlement characterized by its location in the mountainous terrain of the Apennine range.