Stupas and temples were usually built by the kings and queens as it was an expensive affair. Besides, when devotees came to visit the temple or the stupa, they often brought gifts, which were used to decorate the buildings. For example, an association of ivory workers paid for one of the beautiful gateways at Sanchi.