Any process in which chromosomes or DNA molecules are cleaved and the fragments are rejoined to give new combinations. Occurs naturally in cells as the result of the exchange (crossing over) of DNA sequences on maternal and paternal chromatids during meiosis; also is carried out in vitro with purified DNA and enzymes.