From the death of Louis III in 1436 until 1442, Louis IV ruled under guardianship of his uncle, Count Palatine Otto I of Mosbach. In 1444 he repelled the attacks of the Armagnacs as an Imperial captain.[2] Louis IV died aged 25 years in 1449 in Worms, and was buried in the Church of the Holy Spirit of Heidelberg. His only son being a minor, Philipp, he fell under the guardianship of Louis' brother Frederick, who later adopted him and then seized the electoral title himself in 1451/52.