In the Hall of Ma'at, Ammit had a pivotal role in the 'Weighing of the Heart' ceremony. If the deceased's heart, weighed against the feather of Ma'at, was found heavier due to sinful actions, Ammit would devour the heart, leading to a 'second death' where the soul ceased to exist.