the battle of río salado, also known as the battle of tarifa (30 october 1340) was a battle of the armies of king afonso iv of portugal and king alfonso xi of castile against those of sultan abu al-hasan 'ali of the marinid dynasty and yusuf i of granada.