Mary I's grandfather was Ferdinand of Aragon.

Catherine of Aragon (16 December 1485 – 7 January 1536) was Queen of England from June 1509 until May 1533 as the first wife of King Henry VIII; she was previously Princess of Wales as the wife of Henry's elder brother Arthur.

Catherine was the daughter of Isabella I of Castile and Ferdinand II of Aragon, Catherine was three years old when she was betrothed to Arthur, Prince of Wales, heir apparent to the English throne. They married in 1501, but Arthur died five months later on 2 April 1502. Catherine subsequently married Arthur's younger brother, the recently ascended Henry VIII, in 1509.

By 1525, Henry VIII was infatuated with Anne Boleyn and dissatisfied that his marriage to Catherine had produced no surviving sons, leaving their daughter, the future Mary I of England, as heir presumptive at a time when there was no established precedent for a woman on the throne.

More Info: en.wikipedia.org