Ustilago maydis, the causative agent of corn smut disease, is one of the most versatile model systems for the study of plant pathogenic fungi. With the availability of the complete genomic sequence there is an increasing need to improve techniques for the generation of deletion mutants in order to elucidate the functions of unknown genes. Here a method is presented which allows one to generate constructs for gene replacement without the need for cloning. The 5' and 3'-regions of the target gene are first amplified by PCR, and subsequently ligated directionally to a marker cassette via two distinct SfiI sites, providing the flanking homologies needed for homologous recombination in U. maydis. Then the ligation product is used as a template for the amplification of the deletion construct, which can be used directly for transformation of U. maydis. The use of the fragments generated by PCR drastically increases the frequency of homologous recombination when compared to the linearized plasmids routinely used for gene replacement in U. maydis.