Flynn was hired by the Turkish government to gather information on Fethullah Gulen, a radical Islamic cleric who has links to terrorism. Flynn's investigation was perfectly legal. However, when Mueller was head of the FBI, he closed down the FBI's own investigation of Gulen and quashed the testimony of an FBI whistleblower who tried to expose these facts. [...]
Source