In 1189 William Marshal married Isabel (Isabella), the heiress of Earl Richard de Clare. Isabel's castles passed to William including Pembroke Castle.1
After the death of Edmund Tudor his brother Jasper Tudor Earl of Pembroke moved Margaret Beaufort to Pembroke Castle. Margaret was the wife of Edmund and expecting their first child.2
The future king of England, Henry VII, was born at Pembroke Castle. His father was Edmund Tudor who had died a couple of months before the birth and his mother was Margaret Beaufort who was directly descended from Edward III.
William Herbert was given the castle at Pembroke in recognition of his assistance to Edward IV. Herbert was made the guardian of the future Henry VII who was living at the castle.