Ancient Egyptians used a rather gruesome method to remove the brain during the mummification process. They would insert a long, hooked instrument through the nostrils of the deceased and use it to agitate and break down the brain tissue. They then would flush out the remains of the brain using water or a mixture of water and other substances. This process was considered necessary to preserve the body for the afterlife.
The Egyptians believed that the heart was the seat of the soul, and that the brain played a less important role in the afterlife. They also believed that the brain was simply a fleshy organ that would decay and cause problems for the deceased in the afterlife.
While modern historians have confirmed that ancient Egyptians did remove brains during the mummification process, there's a debate about the method of extraction. While the traditional method described above is widely known, evidence suggests that the Egyptians might have used other techniques as well.