The government of Cuba assisted Nicaragua's Sandinista National Liberation Front (FSLN) both before and after they took power in 1979. This was prompted by their shared Marxist ideologies and resistance to the policies of the United States government.