Julius Nepos (died 9 May 480), or simply Nepos, ruled as Roman emperor of the West from 24 June 474 to 28 August 475. After losing power in Italy, Nepos retreated to his home province of Dalmatia, from which he continued to claim the western imperial title, with recognition from the Eastern Roman Empire, until he was murdered in 480. Though Nepos' successor in Italy, Romulus Augustulus (r. 475–476), is traditionally deemed the last western Roman emperor, Nepos is regarded by some historians as the true last emperor of the west, being the last widely recognised holder of the position.
A native of Dalmatia, Nepos began his career as the semi-autonomous governor of the province, succeeding his uncle Marcellinus, a prominent general, as magister militum ('master of troops') of Dalmatia. After the death of the western emperor Anthemius (r. 467–472), who had been appointed by the eastern emperor Leo I (r. 457–474), as well as Anthemius' successor Olybrius (r. 472), Leo sought to assert his authority in the west, granting Nepos command of an army in December 473 to attack Italy and depose Glycerius (r. 473–474), who had been proclaimed emperor by the Burgundian general Gundobad. Nepos left for Italy in the spring of 474, backed by Leo's successor Zeno, and landed with his army at Portus, near Rome. Nepos swiftly deposed Glycerius and was crowned western emperor in Rome on 24 June 474. He was the last emperor to be crowned in the city until Charlemagne in the ninth century. Whether the original intention of the invasion was to install Nepos as western emperor is unclear, but in any event, he was quickly recognised as the legitimate western emperor by Zeno.