In Guardians of the Galaxy Vol 2, there is a lot of talk about how Yondu broke the Ravager code.
What code did he break?
Science Fiction & Fantasy Stack Exchange is a question and answer site for science fiction and fantasy enthusiasts. It only takes a minute to sign up.Sign up to join this community
He abducted kids.
We hear this "code" explained at least twice in the movie.
First, Stakar (the Ravager leader) yells it at Yondu, telling him that, for all the crimes that Ravagers commit, "we don't deal in kids!". We know that Yondu kidnapped Peter from his family at the request of Peter’s father — it appears that the Ravagers have a rule against taking this kind of job. By taking a job involving a child, Yondu broke the code.
We later learn that Yondu's crime was much worse than this. He actually abducted
dozens of Ego's children for Ego,
for which he was paid a lot of money to convince him to violate the code so blatantly. He only stopped when he picked up Peter and decided not to return him to his father as demanded. In Guardians of the Galaxy we learn that Yondu broke his contract with Peter's father and instead raised him as a Ravager; in Guardians of the Galaxy Vol 2 we finally learn the real reason why. Unfortunately, by then it was already too late, he had been exiled.