A method of nanofabrication using atomic force microscopy is described. It is shown that the depth of fabrication depends on the load and scanning times of the tip. Nanostructures are obtained on surface of Al2O3 with the tip of AFM. And reliability of this method is approved. It points that nanofabrication based on AFM can be a powerful tool for production of nanoscale devices.