The singer’s publicist told CNN that the song would be a tribute to the city’s people, and also address social and political issues in the US, particularly the killing of young African American men.
Prince has previously referred to the issue quoting the protest slogan “Black Lives Matter” on stage at the Grammy awards in February.
No release date has been given for the song, but Prince has revealed the artwork, below.
Other musicians responded to the riots that tore through Baltimore after Gray’s funeral on Monday.
Rihanna posted a picture on Instagram of a police officer in riot gear, while John Legend tweeted an Atlantic article about the riots.
A Baltimore TV station reported that Gray died after his head slammed into a bolt at the back of the police van in which he was held.
This article was written by Guardian staff, for theguardian.com on Friday 1st May 2015 15.46 Europe/Londonguardian.co.uk © Guardian News and Media Limited 2010