You decide what to buy for dinner; a factory decides how many cars to make. In a huge economy with millions of goods and people, all these separate plans must somehow fit together—otherwise we’d have mountains of unsold shoes and empty bread shelves. This chapter reveals the hidden logic that makes a market without a boss work, and the surprising fairness properties that emerge when everyone just pursues their own interest.