The 2nd Machine Gun Battalion was an infantry support unit of the Australian Army that was raised for service during World War I as part of the all volunteer Australian Imperial Force. It was one of five such units raised as part of the AIF during the war. Formed in March 1918, the battalion consisted of four machine gun companies, which had previously existed as independent companies assigned mainly at brigade level. The battalion consisted of 64 medium machine guns, and took part in the final stages of the war, seeing action during the Allied defensive operations during the German spring offensive and then the Allied Hundred Days Offensive, which finally brought an end to the war. The battalion was disbanded in mid-1919 during the demobilisation of the AIF.