To have a strong hold on something or someone (literal or figuratively).Typically used to describe someone with absolute control in a given situation.
We had to do what mom wanted because she had the family by the balls