Scientists have isolated two genes that protect wheat plants from a disease that threatens the crop worldwide.