What is the function of restriction endonucleases in bacteria? View Available Hint(s) What is the function of restriction endonucleases in bacteria? They serve no function. They allow bacteria to genetically recombine with other bacteria. They allow bacteria to engineer new DNA fragments. They provide a defense mechanism against infection by viruses.