As long as Moses held his hands up, the Israelites would win the fight. But when Moses put his hands down, the Amalekites would win.