The first recorded encounter between Gilanis/Deylamite warlords and invading Muslim Arab armies was at the Battle of Jalula in 637 AD. Deylamite commander Muta led an army of Gils, Deylamites, Persians and people of the Rey region. Muta was killed in the battle, and his defeated army managed to retreat in an orderly manner.