In the case of market makers, the forex broker will act as the counterparty to provide the liquidity that you need to execute trades.