 A Swedish cavalry regiment was left to threaten Kokenhusen, effectively forcing Steinau to split his forces, thus the bulk of his army stayed across Riga.The allied army was initially under the command of Saxon general Otto Arnold von Paykull and Ferdinand Kettler of Courland, who were both ensured of an easy victory.In their confidence, they prioritized their numbers, advantageous position, redoubts and Saxon courage in superiority over the Swedes.