After returning from Egypt, Napoleon engineered a coup in November 1799 and became First Consul of the Republic. Napoleon's victory at which battle led to the end of the Holy Roman Empire