Nanoindentation involves pressing a sharp indenter into the material's surface and measuring the response. The depth of the indentation and the applied force are recorded to calculate properties like hardness and elastic modulus. The data collected are used to create a detailed map of mechanical properties across the sample.