This question is rather historical one.
kilometres can be defined in metres, metres in centimetres, centimetres in millimetres.
There must be some elementary unit (like millimetre or smth.) which cannot be defined in smaller units.
The question is : How does this elementary unit came into being?? e.g. How did scientists decide about exact distance between point A and point B which is considered millimetre??