What causes delinquency?

I study sociology, and delinquency could be cause by the neighborhood they are surrounded by or peers or sometimes it could be poor parenting. It could also be be the adults in their family or adults in their neighborhood that gives them an example to do a crime cause they do it.