Cyanobacteria are capable of natural genetic transformation. Natural genetic transformation is the genetic alteration of a cell resulting from the direct uptake and incorporation of exogenous DNA from its surroundings. For bacterial transformation to take place, the recipient bacteria must be in a state of competence, which may occur in nature as a response to conditions such as starvation, high cell density or exposure to DNA damaging agents. In chromosomal transformation, homologous transforming DNA can be integrated into the recipient genome by homologous recombination, and this process appears to be an adaptation for repairing DNA damage.