The Mendeleev Myth vs. Reality
In reality, it was the result of systematic, conscious problem-solving driven by a textbook publishing contract.
More
The popular story attributes the creation of the periodic table to a subconscious breakthrough during a dream.