Original: He is a descendant of James Hamlin in the sixth generation, who had settled in the Massachusetts Bay Colony in 1639.
Simplified: He was a descendant of James Hamlin who had lived in the Massachusetts Bay Colony in 1639.