Germany and Italy wanted Fascism to spread and since Francisco Franco was leader of the Falangists (Spanish Fascists) and was trying to spread it.So they basically supplied the Spanish Falangists with weapons and such. After Franco became dictator of Spain, he didn't let Spain join WWII and remained neutral. In summary, the two countries led to the victory of Fascism in Spain.