The 4th Maine Volunteer Infantry Regiment was organized in Rockland in May 1861 commanded by Colonel Hiram G. Berry. Four Knox County companies from Searsport, Winterport, Wiscasset, Damariscotta and Belfast were mustered. The regiment was mustered out of service July 19, 1864. The veteran volunteers and recruits were transferred to 19th Maine Infantry. Of the 1440 men that served in the regiment during the war 170 men were killed in action or died of wounds received in battle. An additional 443 were wounded, 137 men died of disease, and 40 men died in Confederate prisons. The regiment is noted for their coordinated attack at Gettysburg under Elijah Walker with the 1st U.S. Sharpshooters against General Longstreet's forces, and their part in a severe fight at the Devil’s Den.