Where Did Gangs Come from?

I am not sure where ‘Gangs’ came from. I think they were started in Europe, perhaps England, but the Bloods and Crypts, two of the early and popular rapper comforts, came from Compton, California.