Maxwell was married to Katherine who was seven years his senior
One of the interesting facts about James Clerk Maxwell is that he was married to Katherine, who was seven years older than him. Maxwell became friends with Pastor Daniel Dewar, the Marischal Rector at the time, in 1857. Maxwell got to know Katherine Mary Dewar, Dewar's daughter, through him. They got engaged in February 1858, and on June 2, 1858, they got married in Aberdeen. Maxwell is identified as a Professor of Natural Philosophy at Marischal College in Aberdeen in the marriage records. Maxwell and Katherine are seven years apart in age. Although it is known that she assisted in his lab and worked on viscosity tests, little is known about her. Lewis Campbell, Maxwell's friend, and biographer handled Katherine with unusual caution despite calling their marriage "one of unprecedented devotion."
The couple is described as having the sweetest feelings for each other. Although their married life is rarely public, their love is perhaps the most beautiful. They have supported each other in work, in family life from the smallest things. There are no public records showing the couple had children. But for both Maxwell and his wife, love is from the heart so having children may or may not be, it's not a matter of conflict between the two.