Cultural and trade ties go back at least a millennium and the two countries took a lead role in the formation of the NAM.