The recording and inventory of archaeological material is a key point in archaeology. During laboratory duties, each item is individually identified and labelled. This task is usually by hand, which facilitates the information loss due to human error. Thus wrong numbers, misspelling or id loss are common. The lack of a reliable method of marking leads to allocate most of museum tasks to the relabelling of collections. In this paper we present the application of DataMatrix (DM) codes for archaeological labelling. The application of DM in Roca dels Bous and Cova Gran Santa Linya (Lleida Spain) rockshelters has shown that this technique facilitates the storage and preservation of the archaeological collections.