Ancient Egyptian law was based on religious principles and sought to maintain balance and order in society. Laws applied equally and protected important social institutions like family. Punishments for crimes could be severe, aiming to deter unlawful acts. Women had considerable legal rights compared to other ancient societies, including rights to own property, though their primary role was in the domestic sphere. Children received some basic education to learn ethical behavior and trades passed from parents. Hieroglyphics evolved from pictograms to a refined script used for secular writing. The Rosetta Stone helped decode hieroglyphics by providing a multilingual text. Egyptians believed in an afterlife requiring preservation of the body and provisions for the next world. The economy relied on agriculture and trade