House Democrats on Thursday released more than 3,500 Facebook ads created by a Russian troll farm and published before and after the 2016 election with the intent to sow racial and political discord.

The ads, created by the Kremlin-linked Internet Research Agency, targeted specific hot-button matters like immigration, gun rights, LGBT issues, Muslims and Black Lives Matter.

Some of the ads promoted Donald Trump or Bernie Sanders, who were running against Hillary Clinton, and one showed former President Barack Obama in the Oval Office with an Islamic State flag behind him.

Few supported Clinton, the Democratic presidential nominee.

Although the Russians posed as Americans in the Facebook posts to make them seem more realistic, their use of language was awkward and strained.

One about Black Lives Matter declared: “Your life matter. My life matter. Black matters.”

Another opposed immigrants who “should prove that they are deserved to stay in the United States.”

Democrats on the House Intelligence Committee, which is one of several congressional panels investigating Russian influence in the election, released a sampling of the ads last year but decided to disclose the entire collection “so that Americans can begin to understand how Russia used social media to influence the 2016 election, and to divide us.”

“Russia sought to divide us by our race, by our country of origin, by our religion, and by our political party,” Rep. Adam Schiff, the ranking Democrat on the committee, said in the statement.

The ads, turned over to the panel by Facebook, cover a period from early 2015 through mid-2017.

The social media giant estimated that the Russian ads reached about 10 million users in the United States.

The Russian agents manipulated Facebook features to target specific users, aiming messages at people who identified as patriotic, feminist, or who expressed interest in certain publications or websites that provided a clue to their political standing.

And the barrage of ads continued after the election in November 2016.

A series of ads running two days after Trump was elected called on his backers to head to Trump Tower to oppose “massive crowds of libtards” who had gathered in Manhattan.

Special counsel Robert Mueller in February indicted a number of Russians who worked for the Internet Research Agency.

Facebook said it has made changes to stop such ads from being posted on its site.

With Post wires