Kalaka converts the bricks to gold, and the gold is carried to buy provisions, a page from a manuscript of the Kalakacharya-katha
In the upper part of the painting the Jain teacher Kalaka has traveled west beyond India to seek assistance to rescue his sister, who is being held captive by an evil Indian king. Kalaka meets a ruler who agrees to help, and he sends forces to accompany the teacher back home. They are delayed by the monsoon and begin to run out of provisions. Kalaka uses a magic powder to convert bricks (seen stacked in a kiln) into gold, which is then carried, as shown in the lower part of the painting, with the forces to buy provisions.
Interestingly, the artist has differentiated the Central Asians from the Indian Kalaka. They have broad squarish faces that are shown straight on, rather than nearly in profile like the face of Kalaka (and other Indians depicted on other pages of the manuscript.)