Two-step MR analysis revealed that the causal relationship of educational attainment (years of education) with the risk of AF was mediated by CD40l receptor levels and CXCL6 (mediation proportions of 4.1% and 4.3%, respectively). The gene discussed is CD40; the disease is atrial fibrillation.