The invention discloses a double-formula medicine used for treating insomnia, and a preparation method thereof. With existing insomnia-treating medicines, a simultaneous kidney invigorating, liver soothing and tranquilizing function can hardly be achieved. The medicine assists in solving the problem. With the medicine, various depressive insomnias can be treated with multiple targets, multiple links and multiple approaches. The double-formula medicine provided by the invention is composed by a formula A and a formula B. The formula A is composed of a Tiantai radix linderae extract, a corydalis tuber extract, panax notoginseng powder, a Chinese clematis root and rhizome extract, black common monkshood daughter root, an eucommia extract, and the like. The formula B is composed of a white mulberry root-bark extract, a psoralea corylifolia extract, a dipsacus asper extract, a silktree albizia bark extract, an oriental waterplantain tuber extract, an asiatic plantain seed extract, a Chinese arborvilae seed extract, a thinleaf milkwort root extract, a spine date seed extract, a common cnidium fruit extract, and the like. The invention also provides a preparation method of the double-formula medicine. With the method, various depressive insomnias can be treated with multiple targets, multiple links and multiple approaches. The medicine is advantaged in safe treatment, no toxic or side effect, fast effect, and thorough treatment.