Nanoscience and the study of matter on the nanoscale, using modern microscopy techniques, represent an extremely useful and powerful tool for introducing concepts of quantum mechanics from the educational point of view. We have illustrated the basic principles of scanning probe microscopies most used in research laboratories and industries: scanning tunneling and atomic force microscopy, both capable of measuring the physical and electronic properties of matter on the atomic scale and in real time.