Protagonist gets in trouble with someone that wants to kill them (usually mob), hides out with group he/she dislikes, slowly warms up to them, decides to stay with group even though they're urged to flee. Defeats villains thanks to help from group.
An alternate version is if protagonist is using group for own ends, warms up to group, then villain reveals he/she was using them, forcing protagonist to win group back.