Castlemartin is a village and parish in the community of Stackpole and Castlemartin, Pembrokeshire, Wales, in the Pembrokeshire Coast National Park. The village is on a sandstone ridge, 5 miles southwest of Pembroke, 4 miles southeast of Angle, and reached on the B4319 road.