when you buy a stock at 11:03 am, who sells it to you? it feels like there must be another person on the other end of your trade who decided at exactly 11:03 am that they wanted to sell the same number of shares to someone. in reality there almost never is. the person on the other end of your trade is, nine times out of ten, a market-maker — a firm whose entire business is standing ready to sell you whatever you want to buy, and buy whatever you want to sell, and making a small amount of money on the gap between their buy price and sell price. this is one of the most important and least appreciated roles in all of finance, and almost nobody outside it understands what market-makers are actually doing.
the casual description of a market-maker is that they "provide liquidity." that sentence is true and totally unhelpful. a better way to understand them is this: a market-maker is running an inventory business, like a grocery store, except the inventory is shares. they buy shares from people who want to sell, they sell shares to people who want to buy, and they try to keep their inventory near zero. their profit is the bid-ask spread — the gap between what they pay to acquire inventory and what they charge to release it. their risk is that the market moves while they're holding inventory, so they hedge constantly. this sounds simple. it is not. the whole job is understanding who you're trading with so you can price risk correctly.
the thing that makes market-making not a trivial business is adverse selection. when you trade with a market-maker, you know something they don't — at minimum, why you wanted to trade. if you're a retail investor buying because you like the ticker, the market-maker is fine selling to you; your order contains no information. if you're a hedge fund buying because you've just figured out something about tomorrow's earnings, the market-maker is in deep trouble. every time they trade, they're being selected by a counterparty who might know more than they do. the whole profession is a game of figuring out which counterparties are informed and which are not, and pricing accordingly. they love retail flow. they are terrified of institutional flow. the spreads you see on different venues reflect that fear.
this is why payment-for-order-flow exists. retail brokerages sell your orders to wholesale market-makers because your orders are, on average, uninformative. the market-maker is willing to pay for uninformed flow because they can quote a tight spread against it. the broker gets paid; you get a "free" trade; the market-maker gets a stream of orders that's safer than what arrives on the public exchange. everyone has a view on whether this is good or bad, but the economic structure is clean: market-makers pay to trade against people who aren't trying to pick them off.
you can see the same mechanism everywhere once you look. the reason blockchain-based perps exchanges care obsessively about "toxic flow" is that a few quant firms are using faster feeds to pick off slower on-chain market-makers, so the market-makers have to either quote wider spreads (hurting everyone) or filter out the toxic flow. the reason prediction markets are thin is the same reason — there's no uninformed flow, so the market-makers can't profitably quote tight. every market whose liquidity is mysteriously bad is a market where the information ratio is too high for market-makers to eat.
another place this reframing helps is when people complain that high-frequency traders are "front-running" retail. mostly they're not — mostly they are market-making, and the speed advantage exists because being slower means losing money to adverse selection. a slow market-maker gets picked off by faster traders with better information; a fast market-maker survives. the race to be faster is, at root, a race to be less-adversely-selected than the next firm. we could regulate speed away, but the market-makers would respond by widening spreads, which would cost retail more than the speed hurts them.
the last thing worth knowing is that market-makers are the reason markets look seamless to you. when you place an order and it fills in 200 milliseconds at the displayed price, that is not a feat of divine coordination. it is three firms in new jersey running inventory books and taking the other side of your trade so smoothly that you don't notice the plumbing. if those firms turned off tomorrow, the spreads you'd see on your broker's screen would widen by an order of magnitude and the fills would get weird. most of the pricing quality in public markets is downstream of a business almost nobody understands.
market-makers are boring. they are enormously useful. they are running one of the least glamorous and most load-bearing businesses in finance, which is: be willing to trade, with anyone, right now, at a price only slightly worse than the "fair" one. every criticism of modern market structure is eventually a criticism of how they price adverse selection. if you want to understand why markets work the way they do, start with the inventory business, and work outward.