A deoxyribonucleic acid (DNA) microarray image requires a three-stage process to enhance and preserve the image’s important information. These are gridding, segmentation, and intensity extraction. Of these three processes, segmentation is considered the most difficult, as its function is to differentiate between features in the foreground and background. The elements in the foreground form the object or the vital information of the image, while the background features less critical information for DNA microarray image analysis. This paper presents a study that utilises the Markov random field (MRF) segmentation algorithm on a DNA microarray image. The MRF algorithm evaluates the current pixel depends on its neighbouring pixels. The experimental results show that the MRF algorithm works effectively in the segmentation process for a DNA microarray image.