friend and foe; both sides
Refers to both one's own side and the opposing side collectively, often in contexts of conflict, competition, or distinction between groups.
On the battlefield, it can become impossible to tell friend from foe.
In this game, allies and enemies fight in a chaotic mix.
Compound of 敵 (てき, 'enemy') and 味方 (みかた, 'ally'). The reading みかた is a rendaku form of かた (方).