Defense Secretary James Mattis resigned Thursday on the heels of President Donald Trump’s plans to withdraw troops from Syria, citing irreconcilable policy differences in a move that took Washington by surprise.

“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,” Mattis wrote in his letter to the President.