This is a good example of the typical elementary school from the mid-XX Century in Portugal. This typology of school was created by an architect called Arnaldo Redondo Adães Bermudes, and I have to say that I quite like these buildings, even if, nowadays, they are no longer suited for the schools of the XXI Century. Nowadays, this one was converted into a multifunctional pavillion, and it can be found in Alter do Chão - albeit other towns in the Alentejo have similar schools, usually with those (rather charming) belfries.
“Faeries, come take me out of this dull world,
For I would ride with you upon the wind,
Run on the top of the dishevelled tide,
And dance upon the mountains like a flame.”
― William Butler Yeats