In Costa Rica, the collapse of the Spanish Empire meant that there were no powerful central state institutions at all and four towns vied for control. Coffee helped them to stave off collapse and pushed Costa Rica into the corridor. The Red Queen effect was most evident in the emergence of a smallholder coffee economy bolstered by public services and improved property rights in land. Within a few decades, this process forged the social basis for a functioning democracy.

