We all know this, but it's worth restating:
— Orin Kerr (@OrinKerr) November 8, 2018
The President fired the Attorney General for following ethics rules that required the Attorney General to recuse himself from overseeing an investigation into the President's campaign and ultimately the President himself.