Washington (CNN) The federal judge overseeing the case against former Donald Trump campaign aides Paul Manafort and Rick Gates has issued a gag order in the case.

Judge Amy Berman Jackson on Wednesday said the order is necessary to limit the impact on potential jurors.

"In order to safeguard defendants' rights to a fair trial, and to ensure that the court has the ability to seat a jury that has not been tainted by pretrial publicity, all interested participants in the matter, including the parties, any potential witnesses, and counsel for the parties and the witnesses, are hereby ordered to refrain from making statements to the media or in public settings that pose a substantial likelihood of material prejudice to this case," Jackson wrote.

Last week, she urged the attorneys not to make their case from the courthouse steps.

Read More