Detailed atomic structure analysis has been made for a series of the amorphous alloys by utilizing a combination of both neutron and x-ray diffraction techniques. The structure factors and associated with the atomic environment around Mg and Ga atoms can be deduced from the two sets of the total S(Q) obtained from neutron and x-ray diffractions. A prepeak is found to grow at Å in but not in , when Ga concentration exceeds 15 at.%. Its appearance can be interpreted as the formation of the medium-range structure characteristic of the (110) lattice planes composed of all Ga atoms in the crystalline compound. The coordination number and atomic distance of the Mg-Mg, Mg-Ga and Mg-Ca atomic pairs can be deduced by decomposing the first main peak of the RDF(r) obtained by Fourier transforming for all amorphous alloys studied. We showed that the -type short-range structure develops and the Mg-Ga atomic distance is shortened to the level of 2.9 Å for samples with . This is attributed to the formation of the bonding state between Mg and Ga atoms. It is also found that the -type short-range structure, where each Ca atom is fully surrounded by Mg atoms, persists up to x = 10. However, the Ga-Ca atomic pair gradually grows with increasing Ga concentration above x = 15.