Napoleon Bonaparte ruled as the first Consul of France until he was defeated in the Battle of Waterloo.