US Defence Secretary Jim Mattis abruptly said he was quitting on Thursday after falling out with President Donald Trump over his foreign policies, one day after Trump rebuffed top advisers and decided to pull all US troops out of Syria.