Complex sentence: Mahmud had the gilded lingam broken into pieces and had them made into steps for his mosque and palace.
Split into simpler sentences: Mahmud had the gilded lingam broken into pieces. He had them made into steps for his mosque and palace.