The track, titled Black Parade, comes on the back of the pop icon announcing a project by the same name to support black-owned businesses.
Its release on Friday coincided with Juneteenth – a holiday celebrated in the United States to mark the official end of slavery.
Announcing the Black Parade project, which provides an online directory of black-owned businesses ranging from fashion and art to food and drink, Beyonce said: “Happy Juneteenth Weekend! I hope we continue to share joy and celebrate each other, even in the midst of struggle.
“Please continue to remember our beauty, strength and power.
“BLACK PARADE celebrates you, your voice and your joy and will benefit Black-owned small businesses.”
On her website, Beyonce added: “Being Black is your activism. Black excellence is a form of protest. Black joy is your right.”
Warning: The following song contains explicit language:
Shortly afterwards the singer, from Houston, Texas, released the song.
In the near five-minute track, Beyonce sings of black pride and calls for reparations for slavery.
She sings: “I can’t forget my history is her-story, yeah. We black, baby, that’s the reason why they always mad.”
Other lyrics include the phrase: “Need peace and reparations for my people.”
Black Parade is Beyoncé’s first new solo music since she contributed to The Lion King companion album last year.
In April she teamed up with rapper Megan Thee Stallion for a remix of the latter’s viral hit Savage.
Beyonce, one of the biggest and most influential musicians on the planet, has been vocal throughout the coronavirus crisis and the anti-racism protests sparked in May by the death of George Floyd.
In April, as the pandemic was causing devastation across the US, Beyonce warned African-Americans were being disproportionately affected.
Her BeyGood foundation made donations towards the relief effort. And following the death of Mr Floyd, a black man who died after a white police officer knelt on his neck for more than eight minutes, she demanded “real justice”.