This contribution presents an approach for the modeling and prediction of surface roughness in the turning of AZ91D magnesium alloys using an artificial neural network. The experiments were conducted with CCGT, DCGT and VCGT cutting tools under minimum quantity lubrication and dry machining conditions. AZ91D alloys were machined at different cutting speeds and feed rates, and the depth of cut was kept constant. 15 out of 18 experimental data points were used for the training of the artificial neural network model and the remaining 3 were used for the testing process. The average percentage error was calculated as 0.000815 % and 0.663 % for training and testing, respectively. The model and target results were found to have extremely low error rates.