Lynn is a city in Massachusetts and the largest city in Essex County. It is near the Atlantic Ocean, 3.7 miles (6.0 km) north of the Boston city line at Suffolk Downs.