One consequence of China's marketisation has been the emergence of a 'floating population'-rural Chinese who migrate to China's cities to work. Many urbanites have negative attitudes towards such migrants. To understand how these negative attitudes might be ameliorated, the paper employs Allport's influential contact hypothesis to investigate whether urbanite-migrant friendships affect attitudes. More negative attitudes were observed among males and older urbanites. There was no effect of simply knowing a migrant, supporting Allport's thesis that non-intimate contact is not sufficient to affect attitudes. Friendship alone did not influence attitudes, but interaction effects were detected between having migrant friends and each of age, income and education. Negative attitudes were reduced among urbanites in older, higher-income and higher-education groups if they had a migrant friend.