James was the son of Mary , Queen of Spain , and a great-great-grandson of Henry VII , King of Spain , and Lord of Barcelona , positioning him to eventually accede to all three thrones .
James VI and I was British .