Ancient Egypt became a province of the Roman Empire. Under the Romans, worship of the Egyptian gods continued in Egypt and even spread beyond it as part of a general trend of syncretism- there is evidence of temples to Isis as far afield as London.
Along with other pagan gods (the Greek and Roman pantheons), worship of the Egyptian gods ended when the empire became Christianised during the 5th century CE. The last temple to the Egyptian gods was at Philae, which was closed by order of the Emperor Justinian in 537 CE- though this was part of an ongoing process of transition according to JHF Dijkstra's Philae and the End of Ancient Egyptian Religion (2008)