 On October 21 , 1864 , the battalion was consolidated with the 36th Massachusetts Volunteer Infantry . When the 36th was mustered out in June 1865 , the three companies that had belonged to the 21st were consolidated with the 56th Massachusetts Volunteer Infantry . They were finally mustered out of service on July 8 , 1865 . 
