Somaglia is a comune in the province of Lodi in the Italian region of Lombardy, located about 50 kilometres southeast of Milan and about 20 kilometres southeast of Lodi.