ally (oneself) to
To join or unite with another person or group. In order to survive the attack, I allied myself to the invading soldiers. We need to ally ourselves to management if we want to keep our jobs.
ally oneself to someone or something
to unite or affiliate oneself with someone or something. She sought to ally herself to the older members. Jane allied herself to the teacher almost immediately.