Young chicks have to learn what dust is for dustbathing. Therefore, early pecking experience with non-nutritious substrates may be significant for later identification of substrates for dustbathing. In this study, pecking experience was controlled in 12 pairs of chicks housed in wire cages by presentation of peat and yellow sand in a small box that allowed pecking, but not dustbathing in it. Five-minute tests were carried out on Days 39 and 16-17, whereas on Days 10-15, they were 'trained' to dustbathe by being allowed to peck for 30 min while on a glass plate in front of the pecking box. Pecking increased from Day 3 to 9, scratching from Day 3 to 5, and peat was clearly preferred over yellow sand. At that stage, the substrates were swallowed, i.e. treated as food. Chicks with a high dustbathing performance during training days readily performed dustbathing from the first day of training, and they performed little spontaneous vacuum-dustbathing on Days 16-17 on the wire floor of their cage as compared with the chicks we failed to train, who were more likely to engage in vacuum-dustbathing after the training period. Accordingly, in these chicks access to peat and sand for pecking (and ingestion) controlled dustbathing behaviour by Day 10. The results of a dustbathing choice test over Days 17-19, in which the chicks were allowed full opportunity to dustbathe in the substrates, confirmed this conclusion.