
Throw in your lot with somebody
Choosing Sides
It means deciding to side with someone, especially in a conflict or competition. 
Shared Outcome
It suggests sharing the risks and outcomes of the group you're joining. 
Personal Advantage
The phrase often implies a hope to gain personal benefit from the alliance. 