This paper addresses the problem of identifying brain regions with similar oscillatory patterns detected from electroencephalograms. We introduce the hierarchical spectral merger (HSM) clustering method where the feature of interest is the spectral curve and the similarity metric used is the total variance distance. The HSM method is compared with clustering using features derived from independent-component analysis. Moreover, the HSM method is applied to 2 different electroencephalogram datasets. The first was recorded at resting state where the participant was not engaged in any cognitive task; the second was recorded during a spontaneous epileptic seizure. The results of the analyses using the HSM method demonstrate that clustering could evolve over the duration of the resting state and during epileptic seizure.