Castelflorite is a municipality in the province of Huesca, in the autonomous community of Aragon, Spain. It is located in the northeastern part of the country, within the comarca of Monegros.
According to the 2004 census carried out by the Instituto Nacional de Estadística (INE), the municipality had a population of 128 inhabitants. This small population figure reflects the sparse settlement pattern typical of the Monegros area, a semi-arid region of Aragon known for its dry landscapes and low population density.
As a municipality, Castelflorite holds the administrative status of a local entity within the Spanish system of government, with its own municipal administration. Its small size places it among the many rural municipalities of Huesca province that maintain a distinct local identity despite limited population.