means that
someone believes they have made an important discovery, only to find that it is illusory or worthless. A mare's nest is an imaginary thing.
The amateur historian thought he had discovered a lost manuscript, but it turned out to be a modern copy; he had found a mare's nest.