Castell de Castelló de Farfanya is a medieval fortress in the municipality of Castelló de Farfanya in La Noguera comarca, Lleida province, with origins tracing to a Saracen fortress built in the ninth century to protect nearby Balaguer and Lleida from Christian forces. The castle fell to Christian hands around 1116 following an attack commanded by Count Guerau II de Cabrera. Today, remains of towers and walls overlook the town alongside the Church of Santa María, creating a prominent historical silhouette. Other notable period structures include the Church of San Miguel, the House of the Inquisition, and an olive oil mill; the municipality has begun pursuing restoration funding to preserve this significant medieval landmark.