In spite of the continued attacks by the PCE, the CNT eventually agreed to sign a pact of cooperation with the now Communist dominated UGT (the PCE had infiltrated the UGT and ousted Largo Caballero from his position in its executive). The pact was supposed to guarantee the legality of the remaining collectives and of worker's control, while at the same time recognizing the authority of the state on matters such as nationalization of industry and the armed forces. In reality, the collectives were never granted legal status, while the agreement served the further divide the anarchist movement between the anti-statist and collaborationist camps.