Britain was the primary partner. Probably partly realpolitik on the belief that the Royal Navy, the Canadians in the North, and Confederates in the South could check US expansion. References in the books even show the influence the alliance has on Confederate culture like military uniform colors...