TERBOL, Lebanon — Ali Shehadeh, a seed hunter, opened the folders with the greatest of care. Inside each was a carefully dried and pressed seed pod: a sweet clover from Egypt, a wild wheat found only in northern Syria, an ancient variety of bread wheat. He had thousands of these folders stacked neatly in a windowless office, a precious herbarium, containing seeds foraged from across the hot, arid and increasingly inhospitable region known as the Fertile Crescent, the birthplace of farming.

Mr. Shehadeh is a plant conservationist from Syria. He hunts for the genes contained in the seeds we plant today and what he calls their “wild relatives” from long ago. His goal is to safeguard those seeds that may be hardy enough to feed us in the future, when many more parts of the world could become as hot, arid and inhospitable as it is here. But searching for seeds that can endure the perils of a hotter planet has not been easy. It has thrown Mr. Shehadeh and his organization, the International Center for Agricultural Research in the Dry Areas, or Icarda, squarely at a messy intersection of food, weather and war.

Icarda, though it received no state funding, was once known as a darling of the Syrian government. Based in Aleppo, its research had helped to make Syria enviably self-sufficient in wheat production. But a drive to produce thirsty crops also drained Syria’s underground water over the years, and it was followed by a crippling drought that helped to fuel the protests that erupted into armed revolt against the government in 2011.