Mede is a comune (municipality) in the Province of Pavia in the Italian region Lombardy. It is located about 50 km southwest of Milan and about 35 km southwest of Pavia. As of 31 December 2004, it had a population of 6,993 and an area of 33.2 km².