Original: He was a descendant in the sixth generation of James Hamlin 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.