With no skilled Muslim labor at his disposal , Qutb called on local craftsmen to build the mosque from the ruins of 27 Hindu and Jain temples , demolished by their own elephants .
Qutb ordered the mosque to be built from the ruins of Buddhist temples .