All this cocoa production does more than feed our collective sweet tooth: the five million to six million farmers in the tropics who cultivate the cacao trees from which cocoa is produced rely on the sales of the seeds to feed themselves and their families. Workers extract the seeds (often called beans) from football-shaped pods and then ferment and dry them to form cocoa liquor, butter and powder. Roughly 50 million livelihoods depend on the long production road the cacao seeds travel from farm to candy on store shelves. In Ivory Coast, source of 40 percent of the world’s cocoa, such farming accounts for a full 15 percent of GDP and employs 5 percent of households.

“Many of these farmers use their cacao trees like ATM machines. They pick some pods and sell them to quickly raise cash for school fees or medical expenses. The trees play an absolutely critical role in rural life,” observes Peter Läderach of the International Center for Tropical Agriculture, who has led research into the effects of climate change on cacao farming in Ivory Coast and Ghana. Along with Nigeria and Cameroon, those countries produce 70 percent of the world’s cocoa supply.

But the delicate “chocolate tree,” Theobroma cacao, is in peril. The tree has always been extremely susceptible to pests and fungal infections. In 1988, just six years after Mars, Incorporated (our employer), established its Center for Cocoa Science in the thriving cacao-growing region of Bahia, Brazil, the fungal disease witches’ broom was found in the area. It reduced production by 80 percent, driving people whose families had grown cacao for generations to abandon their farms and move to city shantytowns—effectively destroying in a few short years a vast archive of cacao-farming knowledge built over centuries. Now another fungal disease, frosty pod rot, has spread throughout Latin America and may soon arrive in Brazil, where it could be even more devastating than witches’ broom. And what would happen if witches’ broom were introduced into West Africa, either by accident or in an act of bioterrorism?

Making matters worse, many farmers, particularly those in Africa, struggle to obtain the best seeds, fertilizers and fungicides, as well as training in their use. Yields—and the income they generate—are thus a third or less of their potential. Meanwhile the world clamors for more cocoa: manufacturers reckon the industry now produces around 4.4 million metric tons of cocoa; by 2020 they expect that demand will outstrip supply by one million metric tons.

In view of the challenges, we and others in the chocolate industry worry that without fast action on a number of fronts, cacao farming could slide into a downward spiral. To that end, researchers are currently working to find ways to multiply yields sustainably. Some of the efforts involve nontraditional collaboration among farmers, corporations, universities and government agencies, including the U.S. Department of Agriculture. One such collaboration, led by Mars, has sequenced the cacao genome in an attempt to find ways to breed hardier trees. Whether these efforts will succeed in raising yields enough to save the livelihoods of farmers and meet the world’s passion for chocolate remains to be determined, but we see some encouraging signs.

The limited genetic variation of the tree does not help matters. Mars cacao geneticist Juan Carlos Motamayor and his collaborators found through genetic tracing that cacao comes in 10 different major varieties, all of which belong to the same single species. Thus, although the similarity among strains means that growers can crossbreed them easily, it also means that the collected strains do not contain enough variation to provide much natural resilience to pests and disease; if one strain is genetically susceptible, chances are good they all will succumb. When farmers save their own seeds to plant new trees, this local inbreeding leaves the trees even more susceptible to pests and fungi.

Poverty exacerbates these challenges. In Ivory Coast and Ghana, internal movement of people of various ethnic origins and immigration from poorer, neighboring Burkina Faso have not only created tensions between richer and poorer people but also muddied property rights. In both countries, farmers hesitate to invest in trees that their children may not inherit, and many do not want to continue cacao farming unless tree productivity can be significantly improved. Young people are moving out of the cacao-growing areas, which translates to an increase in the average age of farmers and a decrease in their education levels.

Unfortunately, fertilizers, fungicides and pesticides—the most effective ways to significantly boost crop production—are rarely used in the region because farmers cannot afford them and do not know how to employ them effectively. Even if they could afford these tools, the remote locations of the farms, which are often accessible only via poorly maintained roads, mean governments and merchants have a hard time delivering these products to farmers and providing education on how best to use them.

Saving chocolate Because the threats to cocoa production come from pests, disease, climate change and poverty, work must be done on all these issues to raise yields without tearing down rain forests to gain arable land. Abandoned land must be rehabilitated by enriching the soil with fertilizer and by planting trees and shrubs to control erosion. Whereas the average global yield is about 460 kilograms of cacao beans per hectare, crops tended using modern farming techniques could easily yield 1,500 kilograms or more per hectare. For many cacao farmers in developing nations, tripling their yields would mean the difference between a subsistence-level income of $1 a day and a manageable $3 a day.

Science took a critical step toward raising yields about five years ago, when researchers from Mars, the USDA’s Agricultural Research Service (ARS), IBM and other institutions sequenced and analyzed the genome of the so-called Matina 1-6 variety of T. cacao, which many experts consider to be the progenitor of 96 percent or more of all the cacao grown in the world. We then made the results freely available to all—including Mars’s competitors—over the Internet because we felt no single organization has the resources to, in a timely manner, do the breeding work needed to save the species from the various crises it faces. Cacao has not received the genetic attention paid to commodities such as rice, corn and wheat—attention that has dramatically improved yields for these crops. (Another consortium, led by the French agricultural research organization CIRAD, announced its sequencing of a different variety of cacao shortly after we released our sequence.)

To be effective, the molecular research on cacao taking place in labs in the developed world has to connect to what breeders are doing on the ground in the developing world. Mars and the ARS have thus, over the past decade, organized networks of cacao breeders in West Africa, Southeast Asia and Latin America. The breeders are using the cacao genome to discover where, among the world’s cacao crops, disease resistance, enhanced yields, water and nutrient use efficiency, and climate change adaptability are to be found.

Thanks to such collaborations, when Wilbert Phillips-Mora, a breeder in Costa Rica, found a cultivar that exhibited some resistance to frosty pod rot, he sent samples to the molecular biologists in the network, who were then able to use the genome map to identify the gene variant in the cultivar that confers resistance to the dread fungus. In subsequent breeding efforts, the breeders can quickly determine if new cultivars carry that trait or other useful traits for the next generation of cacao trees. Already farmers in Latin America are grafting parts of branches from these new plants to their trees.

Breeders have previously identified cultivars that resist witches’ broom, but they do not produce high-quality cocoa. The new breeding work raises the prospect of mixing such desired attributes as resistance and quality in a single T. cacao cultivar through careful crossbreeding. In a similar vein, researchers have discovered a type of cacao resistant to Southeast Asia’s vascular-streak dieback disease and are currently analyzing the genetic underpinnings of that trait. Cacao experts ultimately hope to breed trees that are resistant to other fungi and pests and that can endure the heat and water scarcity that often accompany climate change while preserving the quality of the cocoa beans.

Researchers also aim to produce shorter trees. During harvest, farmers cut the cacao pods from the tree with knives on the ends of long poles. They take great care to not damage the site of pod growth. A shorter but equally or more productive tree would require fewer resources to generate the pods and be easier to harvest.

Yet even short, drought-tolerant trees still need some water. Eventually, no matter how efficient our cultivars, cacao growers will have to figure out how to irrigate more crops instead of relying on fickle rainfall. Farmers, scientists, aid agencies and foundations are trying different approaches to solving this problem across regions. Brazil is working on two radically different strategies. In the first, small farmers are trained to develop mixed agroforestry systems, in which cacao trees are planted among food crops, fodder trees and timber trees. These mixes improve water-holding capacity throughout the entire system by varying the root structures throughout the matrix of trees. The second strategy takes the opposite tack, creating large plantations of cacao trees in Bahia, Brazil, at higher altitude—out of the traditional pest and disease ranges—in the full sun and irrigating them with fertilizer-enriched water for maximum productivity. Vietnamese growers—some of whom are encountering falling water levels as a result of unsustainable groundwater use—are making reservoirs to collect rainwater for irrigating the cacao trees.

As is the case for water supplies, each cacao-growing region of the world has its own set of challenges and organizations that are stepping up to tackle them. In early 2009 the World Cocoa Foundation (WCF) began a $40-million program, funded by the Bill & Melinda Gates Foundation and 17 companies, to improve the livelihoods of cacao farmers in five West and Central African countries. By 2014 the Cocoa Livelihoods Program had trained nearly 200,000 farmers, working with them to enhance productivity and quality, promote crop diversification and boost supply-chain efficiency.

The program is based on a successful series of WCF field schools for African cacao farmers, themselves modeled on similar United Nations Food and Agriculture Organization farmer field schools. School facilitators found local farmer leaders to do much of the teaching, and aside from covering obvious topics such as disease management, pruning and harvesting, the schools tackled topics such as malaria, HIV/AIDS, farm safety and the avoidance of child labor. According to WCF president Bill Guyton, graduates increased their incomes by 23 to 55 percent.

In Southeast Asia, farmers tend to get the training they need because of better extension services. The main hurdle there is to develop integrated pest-management techniques to deal with the devastating pod borer—work that has begun but still has a long way to go. Such techniques include using pheromone-based traps and black ants (natural enemies of the pod borer) to control the moths and not relying solely on pesticides, which could damage the biodiversity in the region.

Tripling cacao yields sustainably is perfectly possible. Effective fertilizers, fungicides and training programs already exist, and scientists are beginning to develop cultivars resistant to some of the problems that have long dogged the cacao tree. But getting all these resources to poor, remote farmers so that they can become better off and better connected is a job too big for any single government, U.N. agency, company or project. Meeting that objective will take innovative, energetic coalitions. We are optimistic that a more secure future for chocolate and the vast social, cultural and ecological ecosystem it supports will come to pass, but it must be said that making cacao a truly sustainable crop will be a grand challenge indeed.