Background: Insomnia, recognized as a prevalent sleep disorder, has garnered extensive attention within the realm of public health. Recent studies indicate a close interaction between the immune system and sleep, however, the specific mechanism remains not yet fully understood.Methods: This study employed a comprehensive two-sample Mendelian randomization analysis to elucidate the correlation between immune cell characteristics and insomnia. Utilizing publicly available genetic data, we investigated the causal relationship between 731 immune cell traits and insomnia risk. Comprehensive sensitivity analyses were conducted to verify the robustness, heterogeneity, and horizontal pleiotropy of the results.Results: In this study, we identified that 14 immune phenotypes among four immune profiles (MFI, RC, AC, and MP) demonstrated a significant causal association with insomnia. Specifically, eight immune cell phenotypes were associated with an increased risk of insomnia, including CD11c+ monocyte% (P<0.001), CD11c+ HLA DR++ monocyte% (P =0.004), CD86+ plasmoid dendritic cell (DC) AC (P <0.001), CD33br HLA DR+ CD14dim AC (P <0.001), CD8dim AC (P =0.002), CCR2 on CD14+ CD16- monocyte (P <0.001), CD39 on monocyte (P<0.001), and SSC-A on myeloid DC (P<0.001). Six immune cell phenotypes demonstrated protective effects against insomnia, including PB/PC% B cell (P<0.001), CM CD4+% CD4+ (P<0.001), T cell AC (P<0.001), BAFF-R on IgD- CD38br (P<0.001), CD16-CD56 on HLA DR+ NK cells (P<0.001), and CD14 on CD33br HLA DR+ CD14dim (P<0.001).Conclusions: Our study established the correlation between immune cells and insomnia via the Mendelian randomization method, offering a novel theoretical foundation for the concept of sleep-immune crosstalk.