In this study ANSYS software will be used to optimize structure of a CNC 3-axis machine. The objective of this study is to gain the optimal structure for the machine with enough stiffness and minimal weight. The structure then will be redesigned by removing irrelavant material at low-stress areas. Stiffness and strength of the new structure will be analyzed to guarantee the qualified function of the structure with lowest cost of material. This study only focuses on static loads because of the working characteristic of the designed machine. The optimized structure has been manufactured and the machine has been assembled and tested under working conditions. The machine has good enough stiffness and lightweight.