An adaptive Markov random field (MRF) approach is proposed for classification of hyperspectral imagery in this letter. The main feature of the proposed method is the introduction of a relative homogeneity index for each pixel and the use of this index to determine an appropriate weighting coefficient for the spatial contribution in the MRF classification. In this way, overcorrection of spatially high variation areas can be avoided. Support vector machines are implemented for improved class modeling and better estimate of spectral contribution to this approach. Experimental results of a synthetic hyperspectral data set and a real hyperspectral image demonstrate that the proposed method works better on both homogeneous regions and class boundaries with improved classification accuracy.