 It was not until 826 that Louis first came to rule Bavaria.In 828 and 829 he undertook two campaigns against the Bulgarians who wanted to penetrate into Pannonia without great success.During his time as Unterkönig, he tried to extend his rule to the Rhine-Main area.