"Code of the Streets" is a song by American hip hop duo Gang Starr from their fourth studio album Hard to Earn (1994).
"Code of the Streets" evolved from a 1992 song titled "Wrongs of the World", which was produced by Guru and featured in an investigative report on WWOR-TV called Crime Chronicles.
When Gang Starr was working on Hard to Earn, DJ Premier asked Guru if they owned the rights to the song as he believed it would be a suitable addition for the album.
For this reason, Premier remade the production of the song to create a "morse code type scratch"; he has stated, "I reprogrammed the drums with just a little bit more of a skip, the way I do it, and you can tell a difference when you hear the Gang Starr version.
"[1] The instrumental contains "somber" strings, while lyrically Guru focuses on behavior in the streets and ghetto[2] and comments on the state of the society.