The name of the place could refer to the local linen production and the associated flax cultivation, which was carried out in the past on the slopes of the Moritzberg mountain.[5]
There are no reliable historical records about the origin of the place.
Leinburg was first mentioned in a document in an imperial decree issued by Louis the Bavarian in 1299[5].
Diepersdorf — the largest subdivision of the municipality of Leinburg — was first mentioned in 1079 when King Henry IV gifted Dieprehdesdorf to the ministerialis (unfree knight) Ebbo.[6]
Leinburg's subdivision of Gersdorf was first mentioned in a document of the Burgraves of Nuremberg in the year 1265[7].
In 1299, Leinburg was pledged to the Count of Nassau, who in 1360 sold Leinburg, along with the manor of Altdorf, to Burgrave Albrecht the Fair of Nuremberg. Through inheritance or sale, other noble families became lords of Leinburg. In 1504, Leinburg came under the control of the Free Imperial City of Nuremberg. Nuremberg became the patron of the Leinburg church in 1526, and in the same year, the town received its first Protestant pastor.[5]
The village of Leinburg suffered greatly due to wars and plague. The chronicle mentions the years 1547 for the Schmalkaldic War and 1562 as a plague year. [5]
After the Thirty Years' War (1618 – 1648), Leinburg became the new home of numerous exiles from Austria who had to emigrate because of their Protestant faith.[8]
World War II also left its mark on the village, resulting in 40 destroyed buildings and many homeless people. In the post-war years, the village's population increased due to the influx of refugees. A Catholic parish was founded, which today serves the entire municipality of Leinburg and the municipality of Engelthal. A steady increase in the population was recorded in the following decades as well.[5]
On July 1, 1971, the municipality of Unterhaidelbach, including its constituent villages of Weihersberg and Pühlhof, was incorporated.[9] The following six municipalities, which were independent until the territorial reform in Bavaria, merged with their respective constituent villages into the new unified municipality on May 1, 1978:[10]
- Leinburg, including the constituent villages of Heiligenmühle, Fuchsmühle, Krämersweiher, and Forsthaus.
- Diepersdorf is the largest constituent village of the municipality. The hamlet of Scheerau was part of the former municipality of Diepersdorf.
- Entenberg
- Gersdorf. The former municipality of Gersdorf included Reuth, Pötzling, and Gersberg.
- Oberhaidelbach
- Weißenbrunn with the hamlets of Winn and Ernhofen