The invention provides a diffusion-free avalanche photodiode and a preparation method thereof. The avalanche photodiode comprises a substrate. A buffer layer, a diffusion impervious layer, an avalanche multiplication layer, an electric field control layer, a gradual change layer, a light absorption layer, a corrosion stop layer, a window layer and a contact layer sequentially grow on the surface of the substrate. The window layer is placed at the central position of the corrosion stop layer. Medium insulating layers of the corrosion stop layer are covered both on the periphery of the window layer and above the contact layer, and the medium insulating layers are provided with annular channels. The circular window layer is corroded by selectivity corrosion, the medium insulating layers are covered on the parts outside the window layer, the size of the window layer can directly define the light sensitive area of the avalanche photodiode, and so that the avalanche photodiode is suitable for working at different rate environments. In addition, although a slightly strong electric field exists on one side, close to the edge of the window layer, of the light absorption layer, edge punch-through can not occur on the avalanche multiplication layer.