Christianity, primarily in the form of the Coptic Orthodox Church, was the dominant religion in Egypt before the Islamic conquest in the 7th century.
While various pagan beliefs and practices existed in ancient Egypt long before Christianity, by the time Islam arrived, Christianity had been firmly established for several centuries. The Coptic Orthodox Church of Alexandria played a significant role in the development of early Christian theology.
Following the Arab conquest of Egypt, Islam gradually became the dominant religion. However, a significant Christian minority remained and continues to exist in Egypt today. There was also a small Jewish population, but many have emigrated over the past few decades.
In summary, while ancient Egypt had its indigenous religious beliefs, immediately before the Islamic conquest, the predominant religion was Christianity.