 From 935 to 937, Abd ar-Rahman confronted the Tujibids, defeating them in 937.In 939 Ramiro II defeated the combined Umayyad and Tujibid armies in the Battle of Simancas.Umayyad influence in western North Africa spread through diplomacy rather than conquest.