Band selection plays an important role in hyperspectral image processing, which can reduce subsequent computation and storage requirement. There are two problems that are rarely investigated for band selection. First, some low-discriminating bands need to be manually removed by experts, which is time consuming and expensive; second, how to automatically determine the number of selected bands is not well investigated, though this is an indispensable step in practical applications. In this paper, we propose an automatic band selection (ABS) method to solve these problems. First, we exploit spatial structure to determine the discriminating power of each band, these bands with little structure information will be discarded; then, a powerful classifier is used for clustering, which can automatically find the underlying number of clusters. Experiments based on three real hyperspectral datasets demonstrate the effectiveness of our method.Index Terms-Automatic band selection (ABS), clustering with classifier, low-discriminating bands, number of bands.