Even before Cuba was removed from the OAS and the American embargo was enforced, Castro was already making plans to outmaneuver the Americans in a way that would also result in them asserting their independence as a nation against the Soviet Union. Thus, in 1961, Cuba joined the Nonaligned Movement (NAM) and became the only member of the organization in the Western Hemisphere.[8] The purpose of NAM is to “protect the right of nations to independent judgements and to counter imperialism while also committing itself to restructuring the world economic order,” which not only coincided with Cuba’s very core ideals, but it also encouraged multilateral cooperation and thus, aided Cuba economically by providing it with more allies to trade and collaborate with.[9] Although Cuba did not perfectly fit the criteria for the ‘non-aligned movement’ as they were affiliated with the USSR, they joined the organization to help differentiate themselves from the Soviets as they wanted to display how the country could act independently and sometimes even against Soviet wishes, but to also show how even with the strong American influence throughout the world, it could not prevent every political move that Cuba made.
That’s what confused me, Cuba was clearly aligned with Soviet Union so how could they be a part of NAM?
source