The novel phosphate hydroxide Na2−xCo6(OH)3[HPO4][Hx/3PO4]3 with the mineral ellenbergerite topology and alkaline cations in the framework channels shows strong antiferromagnetic interaction and magnetic transition at TN = 44 K.