This document presents a model of the over-the-counter federal funds market. It uses a search-and-bargaining framework to model how banks with reserve shortages and surpluses are matched to reallocate balances. The model shows the fed funds rate is determined by banks' discount rates and the distribution of reserve balances held by banks. It also shows under certain conditions, the market structure achieves efficient reallocation of funds among banks.