He led France to victory over Austria in a series of wars during 1796. He was the first consul of the consulate that ruled France post 1799. He became the emperor of France in 1804. He created the Napoleonic Code which even now is the basis of the legal system in France.