UPDATE: Mattis didn’t “retire” necessarily, he’s leaving. Here’s the letter.
"Because you have the right to have a Secretary of Defense whose views are better aligned with yours on these and other subjects, I believe it is right for me to step down from my position."