Ahmad Shah was born to Muhammad Shah I aka Tatar Khan who was a son of Muzaffar Shah I. Muhammad Shah I was probably killed by his uncle Shams Khan in favour of his grandfather Muzaffar Shah when he imprisoned him.
According to Mirat-i-Ahmadi, he abdicated the throne in favour of his grandson Ahmad Shah in 1410 due to his failing health.