A bio-mimic bulk acoustic wave (BAW) sensor was fabricated by coating the caffeine (CAF) template molecular imprinting polymer (MIP). This sensor exhibited high selectivity and a sensitive mass response to CAF. The response range of the sensor was between 5.0 x 10(-9) and 1.0 x 10(-4) M with a detection limit of 5.0 x 10(-9) M at pH 8.0. Recoveries were 96.1-105.6%. Influencing factors were investigated in detail and optimized. When employed to detect real samples, the proposed method proved to be a convenient method with the advantages of high sensitivity, good selectivity and ease of handling.