A protein that recognizes a certain sequence of DNA and cuts the DNA at that site.