Mărgineni (Hungarian: Marzsinén) is a commune in Bacău County, Western Moldavia, Romania.
It is composed of eight villages: Barați (Barát), Luncani (Lunkány), Mărgineni, Pădureni, Podiș, Poiana, Trebeș (Terebes), and Valea Budului.
At the 2002 census, the commune had 8,132 inhabitants, 99.8% of which were ethnic Romanians; 57.5% were Roman Catholic and 41.9% Romanian Orthodox.
At the 2011 census, the population had decreased to 7,993, while at the 2021 census, it had increased to 9,594.
This Bacău County location article is a stub.