Napoleon became Emperor of the French on 18 May 1804. He was crowned Emperor on 2 December 1804. This ended the time of the French Consulate. He won early military victories in the War of the Third Coalition against Austria, Prussia, Russia, Portugal, and allied nations. The Treaty of Tilsit in July 1807 ended two years of bloodshed on the European continent.