When the Mongol commander Kadan withdrew from the invasion of Hungary, he entered Bosnia in late March or early April 1242. Although nominally under Hungarian suzerainty, part of Bosnia had been occupied by Hungarian crusaders opposed to the Bosnian Church while the remainder was under the control of Ban Matej Ninoslav. The passing-through of the Mongols forced the Hungarians to evacuate the territory and allowed Ninoslav to resume control of the whole of Bosnia.