Elagabalus (218-222) was only 14 years of age when he was elected emperor of Rome. Because of his youth, a key role fell on his mother and especially on his grandmother during his rule. They became the first women to be allowed into the Senate, and both received Senatorial titles. But Elagabalus eccentricities, especially his religious practices, soon attracted the hatred of the people. The grandmother therefore decided that the emperor and his mother, who had encouraged his religious practices, had to be replaced. In 222, soldiers assassinated Elagabalus and his mother.