Shah Alam II, also known by his birth name Ali Gohar, or Ali Gauhar, was the seventeenth Mughal emperor and the son of Alamgir II. Shah Alam II became the emperor of a crumbling Mughal Empire.