Mary of Modena ( Maria Beatrice Anna Margherita Isabella d'Este ; 5 October ( O.S. 25 September ) 1658 - 7 May ( O.S. 26 April ) 1718 ) was Queen of England , Scotland and Ireland as the second wife of James II ( England ) and VII ( Scotland ) , ( 1633-1701 ) .
Mary of Modena ( Maria Beatrice Eleonora Anna Margherita Isabella d'Este ; 05 October ( O.S. 25 September ) 1658 - 7 May ( O.S. 26 April ) 1718 ) was Queen consort of England , Scotland and Ireland .