Required both for recombination and for the repair of DNA damage caused by X-rays. Binds to single and double-stranded DNA; in the presence of magnesium; and exhibits DNA-dependent ATPase activity. Promotes DNA strand annealing and strand exchange via DNA recombinase activity and forms helical nucleoprotein filaments. {ECO:0000269|PubMed:15899844}.