The area of the commune belonged to Csíkszék until the administrative reform of Transylvania in 1876, when it fell within the Csík County of the Kingdom of Hungary.
During that time, it was a border village between Hungary and Romania and as such, it had an important and large railway station designed by Hungarian architect Ferenc Pfaff.
In late August 1916, Romania entered World War I on the side of the Allies; the Romanian 4th Army under the command of Constantin Prezan crossed into Transylvania at Ghimeș-Făget and fought against the armies of Austria-Hungary and Germany, but had to retreat by mid-October (see Northern front of the Battle of Transylvania).
During the Hungarian–Romanian War of 1918–1919, Ghimeș-Făget passed under Romanian administration; after the Treaty of Trianon of 1920, like the rest of Transylvania, it became part of the Kingdom of Romania.
In 1950, as part of a wider administrative reform, the commune was transferred from Ciuc County to Bacău Region.