It is possible to distinguish two neighborhoods: Obaldia, at the entrance of the village and site of the original medieval monastery, and Txabarri, the last houses before the foothills of the Sierra.
In the year 864, the Count Diego Porcellos donated to San Millan de la Cogolla several monasteries and lands in Ayala and the valley of Mena, which included Obaldia.
Later, in 1095, as quoted in the convention, the lands were signed over to the Bishop of Calahorra, Don Pedro de Nazar.
A few years later, after the cloistering, the church joined the diocesan scheme, and was served by priests and Salmantón Maroño.
Politically, Madaria consisted of the Sopeña Gang, one of the five groups that made the Earth Aiara and gathered in the field and Zaraobe table.