The correct answer is: D. Ahmad Shah
Ahmad Shah I, also known as Ahmad Shah the Conqueror, was the founder of the Gujarat Sultanate. He was a Turk from the Khalji dynasty. He came to Gujarat in 1407 and defeated the Vaghela ruler, Lakhpat Rai. He then established the Muslim rule in Gujarat.
Alauddin Khalji was the Sultan of Delhi from 1296 to 1316. He was a great conqueror and expanded the Delhi Sultanate to its greatest extent. However, he did not rule Gujarat.
Humayun was the second Mughal emperor. He ruled from 1530 to 1540 and again from 1555 to 1556. He was the son of Babur, the founder of the Mughal Empire. However, he did not rule Gujarat.
Mahmud Begada was the Sultan of Gujarat from 1458 to 1511. He was the son of Ahmad Shah I. He was a great conqueror and expanded the Gujarat Sultanate to its greatest extent. However, he did not end the rule of the Vaghela dynasty.
Therefore, the correct answer is: D. Ahmad Shah