Facebook has been charged for allegedly allowing housing advertisers to discriminate against users based on race, sex and disability.

The US Department of Housing and Urban Development (HUD) has charged the site for violating the Fair Housing Act.

“Facebook is discriminating against people based upon who they are and where they live,” HUD secretary Ben Carson said in a statement.

Facebook said it was “disappointed” by the charges.

“We’re surprised by HUD’s decision, as we’ve been working with them to address their concerns and have taken significant steps to prevent ads discrimination,” a Facebook spokesperson told the BBC in an email.