Microlenses and microlens arrays are fabricated using a novel fabrication technology based on the exposure of a resist (usually PMMA) to deep X-rays and subsequent thermal treatment. The fabrication technology is very simple and produces microlenses and microlens arrays with good surface roughness (less than 1 nm). The molecular weight and glass transition temperature of PMMA is reduced when it is irradiated with deep X-rays. The microlenses is produced through the effects of volume change, surface tension, and reflow during thermal treatment of irradiated PMMA. The geometry of the microlens is determined by parameters such as the X-ray dose applied to the PMMA, the diameter of the microlens, along with the heating temperature, heating time, and cooling rate in the thermal treatment. Microlenses are produced with diameters ranging from 30 to 1500 μm. The modified LIGA process is used not only to construct hemispherical microlenses but also structures that are rectangular-shaped, star-shaped, etc.