Johannes Aventinus (1477–1534) is the city's most famous son, the founder of the study of history in Bavaria. Aventinus, whose name was real name is Johann or Johannes Turmair ("Aventinus" being the Latin name of his birthplace) wrote the "Annals of Bavaria", a valuable record of the early history of Germany and the first major written work on the subject. He is commemorated in the Walhalla temple, a monument near Regensburg to the distinguished figures of German history. Until 1800, Abensberg was a municipality belonging to the Straubing district of the Electorate of Bavaria. Abensberg also contained a magistrates' court. In the Battle of Abensberg on 19–20 April 1809, Napoleon gained a significant victory over the Austrians under Archduke Ludwig of Austria and General Johann von Hiller.