A fabrication method of fabricating a structure capable of being used for
generation or detection of electromagnetic radiation includes a forming
step of forming a layer containing a compound semiconductor on a
substrate at a substrate temperature below about 300.degree. C., a first
heating step of heating the substrate with the layer in an ambience
containing arsenic, and a second heating step of heating the substrate
with the layer at the substrate temperature above about 600.degree. C. in
a gas ambience incapable of chemically reacting on the compound
semiconductor. Structures of the present invention capable of being used
for generation or detection of electromagnetic radiation can be
fabricated using the fabrication method by appropriately regulating the
substrate temperature, the heating time, the gas ambience and the like in
the second heating step.