The Castle of Paderne (Portuguese: Castelo de Paderne) is a 12th-century fortification located in the civil parish of Paderne, municipality of Albufeira, in the Portuguese Algarve. It was constructed in the later 12th century by Berbers, around 7.5 kilometres (4.7 mi) inland. The edifice is located just 8.2 kilometres (5.1 mi) from the resort town of Albufeira, along a bend in the Quarteira River. It is believed to be one of the original castles that occupy the shield of the Portuguese national flag.