The pathways involved in the repair of damaged DNA. The damage can involve mismatched or damaged bases, distortion of the helix or breaks in the DNA double strand. Repair of DNA lesions along with the upstream lesion detection and signaling its presence are collectively known as the DNA damage response.