In developing countries, small farmers often cannot access organized markets directly. Instead, they sell to middlemen who resell their output to distant buyers. These middlemen appear to earn large margins, and they appropriate most of the gains from rising consumer prices.