Complex sentence: In 1840 he married Catherine Scott McKay, they had three children, of whom only a son survived.
Split into simpler sentences: In 1840 he married Catherine Scott McKay. They had three children, of whom only a son survived.