Charlie Oppler, the president of the National Association of Realtors, issued a statement on Jan. 6., condemning the assault on the Capitol, but no formal actions have been taken against brokers involved in the siege. Responding to a query about the trade association’s position, Wesley Shaw, a spokesman for the association, wrote that the organization was closely following the legal proceedings connected to the breach and was “committed to taking any action that is deemed appropriate and in the best interest of our association,” but deferred membership qualification decisions to the group’s local associations.

With 1.4 million members, the association is the country’s largest trade organization, representing about half of all licensed real estate agents in the United States. Far from avoiding politics, the organization’s Realtor Political Action Committee is the largest PAC operated on behalf of a trade association in the United States, Mr. Shaw said, giving close to $4 million annually to political candidates on both sides of the aisle who support real estate interests. The association encourages members to get involved in their communities, and to speak out on issues related to housing and property rights. But some may have become too outspoken.

In a year of political and social unrest, the association has been grappling with a wave of social media discourse that became so inflammatory it drove the association to update its code of ethics last November, banning all discriminatory behavior by its members.

After George Floyd’s death at the hands of Minneapolis police last May and the protests that followed, Realtor associations around the country were flooded with complaints about agents posting racist and sexist messages on their social media sites.

Calling out this activity last June, Jennifer Pino, then president of the Atlanta Realtors Association, wrote to the national association: “We cannot continue to allow the Realtor brand to be damaged by these hateful few. This must be stopped.”

“Realtors were being outwardly discriminatory on social media while supposedly adhering to Fair Housing rules,” said Ms. Pino, 49, managing broker at Sotheby’s International Realty’s Buckhead office. “If you were holding an open house, and you had expressed genuine hate for a protected class on social media, how could you possibly treat those people fairly?”

Over the next several months, the association held numerous internal meetings and online forums seeking input to amend the code. In October, Matt Difanis, an Illinois broker who was then chairman of the organization’s professional standards committee, released a video on YouTube where he shared examples from what he called “the mountain of hate speech” posted by agents. The sampling included messages like “I think Black people bring out the worst in us,” and “homosexuals and lesbians are murderers, according to the scripture.”