Caerphilly Castle (Welsh: Castell Caerffili) is a medieval fortification in Caerphilly in South Wales.