The Battle of Alhandic (Spanish: Batalla de Alhandic), also known as Zamora's trench Battle (Batalla del Foso de Zamora), was a battle that occurred on August 5, 939 in the city of Zamora, Spain. The battle occurred when the troops of Abd-ar-Rahman III assaulted the walls of Zamora. The defending troops were those loyal to Ramiro II of León, King of the Kingdom of Leon.