Throw in one`s lot with (someone or something)

To take part in something, to join someone or something.

We decided to throw in our lot with the workers who were on strike.