In the scorching desert of South Sinai, a watermelon plant is doing something its farmer has never seen before: it's thriving. "Honestly, it's growing well for the first time," said Maged El-Said, founder of the Habiba Community, a regenerative farm where panels installed in May are shading the crops above them. The reason? Agrivoltaics — a technique that covers fields with solar panels, which generate clean electricity and shade the plants below.

It's a clever update on an ancient tradition. Millennia ago, Egyptian farmers harnessed the Nile's water and fertile sediment to grow surpluses of wheat that fed the Roman Empire. Today's farmers face a different foe: water shortages and ever-fiercer temperatures that threaten to wilt their crops. So, like their ancestors, they're innovating — this time with panels overhead.

Two pilot projects in Egypt, backed by a variety of funders and partners including the renewable energy company 3E, are testing how the technology works in small farming communities and on a larger scale. There's no one-size-fits-all recipe yet. "There is no perfect guideline on how to get there, so I imagine many projects like ours will be trying out different things," said Gofran Chowdhury, 3E's head of innovation.

The trick lies in the arrangement. Instead of solid seas of panels, the groups are experimenting with layouts like a checkerboard that let more sunlight reach the crops. The shade still does plenty of good: it slows water loss from the soil and shields plants from heat stress. Many crops actually evolved to grow in the dappled light of a forest floor and struggle under open sun.

The idea is catching on far beyond Egypt. In the deserts of Nevada, researchers found that this "hydrological protection" helps a rare plant survive. And in Colorado, scientists growing crops on rooftops under panels discovered they use a third less water than unshaded plants — and grew cucumbers the size of baseball bats. They're even testing transparent panels that let light through while still producing power.

Every crop has different needs, which is why the projects vary so much. The Habiba Community will track what grows best and let farmers keep cultivating what they always have. "We want to adapt and see what is the community doing right now," Chowdhury said, "and trying to see if we can support them with that adaptation."

There are still big questions ahead: whether farms should adopt agrivoltaics alone or band together, and who gets the clean electricity. For now, it powers irrigation equipment, but it could one day run desalination plants — turning the region's brackish water into something farms can use, a self-reinforcing cycle.

Above all, agrivoltaics dissolves the old fight between using land for power and using it for food. "I have the solution that I can have both," El-Said said. "Well, why not?"