The Egyptian Cobra is a terrestrial and crepuscular or nocturnal species. It can however, be seen basking in the sun at times in the early morning. This species shows a preference for a permanent home base in abandoned animal burrows, termite mounds or rock outcrops. It is an active forager sometimes entering human habitations, especially when hunting domestic fowl. Like other cobra species, it generally attempts to escape when approached, at least for a few meters, but if threatened it assumes the typical upright posture with the hood expanded, and strikes. This species prefers to eat toads, but it will prey on small mammals, birds, eggs, lizards and other snakes.