To study an intelligence method and apply it in segmentation of magnetic resonance imaging(MRI),the ant colony algorithm was proposed.At last,the application of the algorithm proposed to head MRI segmentation and comparative experiments to show that the algorithm have great ability of detection the noise and the fuzzy edge.The findings are very important for MRI research and clinical applicantion.