 Mojmír II defeated the Bavarians and captured Svatopluk II, but the Bavarians managed to rescue him and brought him to East Francia.Svatopluk II returned to the Principality of Nitra in 901.He probably died in 906 in fights with the Hungarians, who began to invade the Carpathian Basin in 896.