By 400 BC, Persian engineers had mastered the technique of using yakhchāls to create ice in the winter and store it in the summer in the desert.