Frank Herbert didn't set out to write a novel. He drove to the Oregon coast in 1957 for a magazine article about sand, and spent the next six years chasing the research down a hole that turned into Dune.

The Direct Answer
He built Dune from roughly six years of ecological research that began with a 1957 magazine assignment on Oregon's sand dunes.
Herbert traced the whole thing back to that scrapped article in his 1980 essay Dune Genesis.

It Started With an Article He Never Finished

Frank Herbert didn't sit down to write a science-fiction epic. In 1957, not long after his first novel The Dragon in the Sea appeared, he traveled to Florence, Oregon to report on a U.S. Department of Agriculture project that was planting tough grasses to pin down the coastal sand dunes. Those dunes could bury roads and swallow patches of land, and the government wanted them stopped. His article, They Stopped the Moving Sands, never got past a draft. It stayed unpublished for decades, surfacing only later in The Road to Dune.

The subject wouldn't let him go. He kept pulling threads on desert ecology, on water and scarcity, and on how a punishing landscape shapes the people who have to live on it. The research folders piled up until a few thousand words of intended journalism had grown into something no magazine could ever run.

He'd trained for exactly this kind of deep dig. Years of newspaper work had taught him to gather far more than he could use, then let the surplus give a story its authority. The dunes assignment simply handed that instinct a subject big enough to hold it.

Six Years of Research, Then the Long Road to Print

Herbert began researching in earnest around 1959 and, by his own account, spent roughly six years reading and revising before the novel was done. He wrote much of the early manuscript in San Francisco after his family relocated there in 1960, while he was still working a newspaper job. He described the effort without much drama.

Six years of research had preceded the day I sat down to put the story together, and the interweaving of the many plot layers I had planned required a degree of concentration I had never before experienced.

Frank Herbert, Dune Genesis (1980)

That layering is the reason Dune feels so dense on the page. Ecology, faith, politics, and money all move at once, because Herbert had packed years of real material into the world before he let the plot carry it. He treated the setting like a reporter would, building it out of researched detail so it would hold up under weight.

The ecology was the spine, and everything else hung off it. Herbert described what he was making as an ecological novel with many overtones, and that shows in how the planet's water, weather, and people lock together. Nothing on Arrakis sits there as decoration.

Readers first met the story as two serials in Analog. Dune World ran across three issues from December 1963 to February 1964, and The Prophet of Dune followed as a five-part serial in 1965. When Herbert expanded and stitched the two into a single novel, more than twenty publishers turned it down. It was finally picked up by Chilton, a house better known for automotive repair manuals, which published Dune in August 1965. He dedicated the book to 'the dry-land ecologists, wherever they may be.'

For the working habits behind the book, see the full Frank Herbert writing routine.

What You Can Steal