The past tense of ally oneself with is allied oneself with.
The third-person singular simple present indicative form of ally oneself with is allies oneself with.
The present participle of ally oneself with is allying oneself with.
The past participle of ally oneself with is allied oneself with.