As long as Moses held up his arms, the Israelites won, but when he put his arms down, the Amalekites started winning.