Alfonso IV d'Este was Duke of Modena and Reggio from 1658 until his death. He was the father of Mary of Modena, consort of James II of England.