 The parish was first mentioned in the 8th century (773) as "Rius Medianus".The name of the parish comes from a small river south of the parish ("Rius Medianus") and is located between Santa Maria da Feira and Paços de Brandão.In 1220, it became a parish.