Why did US general Douglas MacArthur leave his command of troops near the end of the Koreans War?

President Truman appointed him secretary of defense.

He became a five star general.

He died in combat.

President Truman fired him for insubordination.