In the Middle Ages a chapel dedicated to Our Lady of Pena was built on the top of the hill above Sintra.