Napoleon was able to enter the military academy at Brienne in 1779. He was nine years old when he entered the academy. He moved to the Parisian École Royale Militaire in 1784 and graduated a year later as a second lieutenant of artillery. Napoleon was able to spend much of the next eight years in Corsica. There he played an active part in political and military matters. He came into conflict with the Corsican nationalist Pasquale Paoli, and his family was forced to flee to Marseille in 1793.