Luck helped him turn things around when he was in trouble
Maxwell received a scholarship or the option to continue his education while working after finishing school. He declined, nevertheless, since Maxwell wanted to visit his father in Scotland and his father's health was getting worse. Maxwell was selected to teach natural philosophy at Marischal University in 1856, but his father passed away before he could start his new position. Since he and his father had a close relationship, the loss was profound, and Maxwell wept for some time.
Life continued, nevertheless, and Maxwell eventually accepted the position of professor. However, the institution already had a professor of natural philosophy on staff not long after Marischal College and King's College joined. The fact that James Clerk Maxwell was expelled from the home is an interesting truth about him, possibly being kicked out of the house has changed his life. At Edinburgh College, he applied for an open position, but another person was hired instead.
When Maxwell was appointed professor of natural philosophy at King's College London, his fortunes finally started to change. He was most successful over those five years of his life. Two of his renowned articles on electromagnetic fields were published by him. He also demonstrated the use of red, blue, and green filters in color photography. He developed an electrical unit standard after researching the thickness and velocity of gases.