Network pharmacology studies revealed that these 38 compounds might affect 103 targets associated with insomnia, such as monoamine oxidase B (MAOB), dopamine receptor D2 (DRD2), monoamine oxidase A (MAOA), interleukin 1β (IL1B), solute carrier family 6 member 4 (SLC6A4), prostaglandin-endoperoxide synthase 2 (PTGS2), and 5-hydroxytryptamine receptor 2A (HTR2A), which contribute to regulating the neuroactive ligand–receptor interaction, 5-hydroxytryptaminergic synapse, and calcium signaling pathways. Here, MAOB is linked to insomnia.