In this paper, a partially coherent beam focused by a lens is investigated theoretically. It is shown that the focused intensity distribution in geometrical focus is not only dependent on the intensity distribution of the incident partially coherent beam, but also on the coherence. Based on this, a novel method is presented for achieving partially coherent top-hat spot at the geometric focus by modulating the spectral degree of coherence of the incident partially coherent beam.