The 5th Regiment Massachusetts Volunteer Militia was a peacetime infantry regiment that was activated for federal service in the Union army for three separate tours during the American Civil War. In the years immediately preceding the war and during its first term of service, the regiment consisted primarily of companies from Essex County as well as Boston and Charlestown.