Castelló de Farfanya is a municipality in the comarca of Noguera, in Catalonia, Spain. It is located in the western part of the region, within the province of Lleida.
The municipality has a population of 548. As a municipality, it forms part of the local administrative structure of the Noguera comarca.