I think that Mattis wanted to handle the Syrian crisis with ISIS to ensure a two year war. What was telling was the Presidents visit with the officers who said they could end it quicker. Mattis wanted a continued fund raiser.
Mattis recognized ISIS as a threat and opposed Trumps then total withdrawal of troops from Syria, an ally. That's why he resigned........