Answer
In 1254, the Kingdom of Hungary invaded the Duchy of Styria and conquered it. Béla IV, the King of Hungary, had claimed the duchy as his inheritance since his mother, Gertrude of Merania, had been the daughter of the last duke of Styria. Béla's invasion was successful and he was able to occupy the duchy.