Meda is a town and comune in the province of Monza and Brianza, located in the northern Italian region of Lombardy, close to Milan and Como.
In order to be free from the control of the new priorate, the people of Meda built another church dedicated to St. Mary and St. Sebastian.
The quarrels between the inhabitants and the convent ended on 10 December 1252, when the Prioress Maria da Besozzo gave up all her political, administrative and economic power on the village.
Later the municipal territory was held by the Visconti and Sforza families until, in the 16th century, it fell under the control of Spain and then of Napoleon.
Meda later came under the power of the House of Habsburg and then, after the Second War of Italian Independence, became part of the Kingdom of Italy.