A new deformable mirror control system is developed. This system consists of a deformable mirror, a CCD camera, an image processor, a computer, and actuator drive power supplies. A genetic algorithm is adopted as a control algorithm to obtain an optimum surface profile of the deformable mirror. A circular cross-sectional Gaussian beam was transformed into a beam with a rectangular contour using this system. Although the transfer function of this system is complicated and unknown, this system can be used to obtain the optimum beam profile within the achievable limits of a deformable mirror.