The two companies said in separate statements that they had identified and suspended more than 3,500 accounts, which used false identities and other misleading behavior to spread false or misleading information.

The networks targeted users in a large number of countries, including the United States, where officials had warned that foreign governments were trying to influence the outcome of the Nov. 3 presidential election.

In the past, social media companies have worked with US authorities to track and dismantle political influence campaigns targeting American voters, which have been attributed to foreign states, notably Iran and Russia.

Tehran and Moscow have repeatedly denied the allegations.

The measures announced on Thursday were taken against global networks, beyond the US elections. The operations targeted at least 16 other countries, from Azerbaijan to Nigeria and Japan, according to Facebook and Twitter.

Twitter showed that the five suspended networks had separate links with groups associated with the governments of Iran, Saudi Arabia. Cuba, Thailand and Russia.

Facebook has announced that it has suspended 10 networks, some of which it has previously identified as public. The networks had strong ties to political groups targeting domestic audiences, the company said, including the Myanmar army and the young wing of the ruling ruling party in Azerbaijan.

“Deceptive campaigns of this kind cause complex problems by blurring the line between a healthy public debate and manipulation,” said Nathaniel Gleicher, director of cybersecurity policies at Facebook.

Facebook also banned a US marketing firm called Rally Forge, which it said worked with the conservative activism organization Turning Point USA and a self-proclaimed environmental organization called Inclusive Conservation Group.

Rally Forge-controlled accounts have tried to influence public conversations around news events by flooding the comment section of articles published by major news outlets, Facebook said.

The Washington Post reported that Turning Point USA was responsible for a “spam-like” political messaging campaign that pumped 4,500 tweets with identical content. At that time, Twitter suspended 20 accounts and Facebook announced that it would investigate the activity.

Turning Point said the allegations are related to a separate entity. “The mistake was reported to the Facebook communication team,” it said in a statement.

Requests for comments from Rally Forge and its Phoenix president, Jake Hoffman, were immediately answered. Reuters failed to contact Inclusive Conservation Group representatives.