(CNN Money) -- Facebook has a new legal headache.
A group of fair housing organizations filed a lawsuit against Facebook on Tuesday alleging that its advertising platform allows landlords and brokers to discriminate based on gender and family status.
The National Fair Housing Alliance joined three other groups in the lawsuit, which claims that Facebook's advertising tools continue to enable marketers to exclude women and families with children from seeing certain housing ads.
The Fair Housing Act prohibits home rental and sale advertisements from discriminating "based on race, color, religion, sex, handicap, familial status, or national origin."
"Facebook has known for years that its advertising platform violates civil rights laws, but it has refused to change its ways on a voluntary basis," Diane L. Houk, one of the attorneys representing the housing groups, said in a statement. "Facebook is not above the law and must answer these civil rights claims in court."
A Facebook spokesperson did not immediately respond to a request for comment.
The lawsuit comes at a delicate time for Facebook as it continues to deal with the fallout from the Cambridge Analytica scandal. Politicians and regulators on both sides of the Atlantic are scrutinizing the company's data privacy practices.
Facebook was first called out in 2016 for offering an ad customization option called "Ethnic Affinities," which let advertisers target and exclude specific groups for ads, including housing-related ads.
"Our policies prohibit using our targeting options to discriminate, and they require compliance with the law," a Facebook spokesperson said in a statement at the time. "We take prompt enforcement action when we determine that ads violate our policies."
Facebook worked to address the potential for discriminatory advertisements, but it was called out again the following year. The non-profit media outlet ProPublica was able to buy dozens of home rental ads targeted toward audiences that specifically excluded "African Americans, mothers of high school kids, people interested in wheelchair ramps, Jews, expats from Argentina and Spanish speakers," it reported at the time.
The housing groups behind the lawsuit created a fake realty firm and submitted housing advertisements to Facebook. According to the suit, the groups found Facebook continues to let advertisers exclude users based on their gender, family status and even certain "interest" categories, including whether they are interested in "disabled parking permits."
"Discriminatory advertising is just as damaging as discrimination at the point of rental or sale," the lawsuit says. "Facebook's algorithms can ensure exclusion and deny access to housing."
-- CNN's Selena Larson contributed to this report.
™ & © 2018 Cable News Network, Inc., a Time Warner Company. All rights reserved.
for more features.