In order to achieve a high-quality, i.e., monoenergetic, intense ion beam, we propose the use of a double-layer target. The first layer, at the target front, consists of high-Z atoms, while the second (rear) layer is a thin coating of low-Z atoms. The generation of high-quality proton beams from the double-layer target, irradiated by an ultraintense laser pulse, is demonstrated with three-dimensional particle-in-cell simulations.