Researchers are reporting that they have solved a longstanding mystery about the rapid spread of a fatal brain infection in deer, elk and moose in the Midwest and West.

The infectious agent, which leads to chronic wasting disease, is spread in the feces of infected animals long before they become ill, according to a study published online Wednesday by the journal Nature. The agent is retained in the soil, where it, along with plants, is eaten by other animals, which then become infected.

The finding explains the extremely high rates of transmission among deer, said the study’s lead author, Dr. Stanley B. Prusiner, director of the Institute for Neurodegenerative Diseases at the University of California, San Francisco.

First identified in deer in Colorado in 1967, the disease is now found throughout 14 states and 2 Canadian provinces. It leads to emaciation, staggering and death.