McIlroy has represented Europe, Great Britain & Ireland, and Ireland as both an amateur and a professional. At the Ryder Cup, he played for Europe against the United States in 2010, 2012, 2014, 2016, 2018, and 2021, with Europe winning in 2010, 2012, 2014, and 2018.