Original: Aqa Ali Shah became Imam of the Ismailis upon the death of his father in 1881, also inheriting his father's title of Aga Khan.
Simplified: Aqa Ali Shah became Imam of the Ismailis when his father died in 1881,. He also got his father's title of Aga Khan.