First, the image is printed on the transfer paper.
Second, the printed surface of the transfer paper is placed on the polyester fabric and the two are pressed together at high temperature.
The molecular chains of the fiber break on heating, and the sublimated ink molecules are caught between the fiber molecules and fixed on the fabric.