Battle of Actium
After Augustus defeated Antony at the Battle of Actium in 30 BC and annexed Egypt, he used the legion to occupy Thebes, the main centre in Upper Egypt. The soldiers of this legion are attested worshipping the Egyptian god Ammon. In either 7 AD or 9 AD the legion was transferred to Alexandria.