In summary, we identified the hub genes, namely, MMP9 and C3AR1, of SAH complicated with epilepsy and determined that they may work by regulating immune cell infiltration. The gene discussed is C3AR1; the disease is epilepsy.