We present the structure and electronic properties of amorphous mercury telluride obtained from first-principle calculations. The initial configuration of amorphous mercury telluride is created by computation alchemy. According to different exchange–correlation functions in our calculations, we establish two 256-atom models. The topology of both models is analyzed in terms of radial and bond angle distributions. It is found that both the Te and the Hg atoms tend to be fourfold, but with a wrong bond rate of about 10%. The fraction of threefold and fivefold atoms also shows that there are a significant number of dangling and floating bonds in our models. The electronic properties are also obtained. It is indicated that there is a bandgap in amorphous HgTe, in contrast to the zero bandgap for crystalline HgTe. The structures of the band tail and defect states are also discussed.