A Micromirror Array Lens comprises a plurality of micromirrors arranged on a flat or a curved surface to reflect incident light. Each micromirror in the Micromirror Array Lens is configured to have at least one motion. The Micromirror Array Lens forms at least one optical surface profile reproducing free surfaces by using the motions of the micromirrors. The free surface can be any two or three-dimensional continuous or discrete reflective surface. The Micromirror Array Lens having the corresponding optical surface profile provides optical focusing properties substantially identical to those of the free surface. The Micromirror Array Lens can forms various optical elements such as a variable focal length lens, a fixed focal length lens, an array of optical switches, a beam steerer, a zone plate, a shutter, an iris, a multiple focal length lens, other multi-function optical elements, and so on.