While the composition and functions of the Federal Diet had changed and evolved since its founding in the 15th century, it was most notably re-organized during the Revolutionary and Napoleonic period. The understanding of the Federal Diet can be broken down into three main periods; before the French invasion in 1798, the period of the French invasion and the Act of Mediation, and from its restructuring by the Federal Treaty ("Bundesvertrag") of August 7, 1815 through its dissolution following the civil war in 1848.