Dictionary.com
Thesaurus.com

had been allying

  • past perfect progressive
    of ally.
    ally
    verb (used with object)
    to unite formally, as by treaty, league, marriage, or the like (usually followed by with orto ).