The restriction endonuclease cuts both the DNA fragment and the plasmid at the same recognition sequence. This means that the sticky ends on both are complementary to each other.As a result, the DNA fragment and the plasmid can slot together with hydrogen bonds between the complementary bases