They are produced by some bacteria as a defense mechanism against viruses. They cut the DNA at specific site called the recognition sites. As humans, we extract these enzymes from bacteria that has been previously cultured them we use them in biotechnology.