Infrared small target detection is difficult due to several aspects, including the low signal-to-clutter ratio of the infrared image, and the small size, lack of shape and texture information of the target. a novel method, which is based on spatial-temporal association, is presented for infrared target detection. The algorithm consists of the three steps: Firstly, 2-dimensional histogram of entropy flow field is computed to estimate the background motion. Secondly, the difference image through background motion compensation is obtained. Finally, the targets are detected by spatial-temporal filter. The experiment results demonstrate that the proposed algorithm is robust to noise, and also fit to detect small targets under moving backgrounds in infrared image sequences.