We identified potential hub genes for inguinal hernia, predicted potential drugs for inguinal hernia, and reverse-validated potential genes by Mendelian randomization. This may provide further insights into asymptomatic pre-diagnostic methods and contribute to studies to understand the molecular mechanisms of risk genes associated with inguinal hernia.