Question: Who did the Umayyads defeat?
Sentence: In the 11th century, during the reign of Mahmud of Ghazni, the province became an important centre with Lahore as its second capital[citation needed] of the Ghaznavid Empire based out of Afghanistan.
Answer in sentence: no