The invention relates to a new resistance gene, Rpi-edn2 and functional homologues or fragments thereof isolated from S. x edinense. Moreover, the invention relates to the use of said resistance gene, for example the use of said resistance gene in a method to increase or confer at least partial resistance in a plant to an oomycete infection. The invention provides an isolated or recombinant nucleic acid sequence comprising a nucleic acid sequence encoding one of the amino acid sequences of Figure 4 or a functional fragment or a functional homologue thereof.