Answer
Ladislaus III, the predecessor of Andrew II on the Hungarian throne, was king from 1204 until his sudden demise in 1205. His untimely passing left a void in the royal line, ultimately paving the way for Andrew II to ascend to the Hungarian throne and assume the mantle of leadership in 1205.