Napoleon served as first consul of France from 1799 to 1804. In that time, Napoleon reformed the French educational system, developed a civil code (the Napoleonic Code), and negotiated the Concordat of 1801. He also initiated the Napoleonic Wars (c. 1801–15), a series of wars that carried over into his reign as emperor of France (1804–14/15). As Emperor Napoleon I, he modernized the French military.