The instability of the thermocapillary flow in liquid layers is studied in the present paper using the linear stability analysis.Based on the two-dimensional steady flow state,the three-dimensional disturbance with a wave number in the spanwise direction is considered.The effects of the aspect ratio and free surface shape of the liquid layer on the flow instability are studied,and the results are compared with the case with the two-dimensional disturbance.