The lac repressor is a DNA-binding protein that inhibits the expression of genes involved in the metabolism of lactose. It binds to the operator region of the lac operon, preventing RNA polymerase from transcribing the downstream genes, thereby repressing the production of enzymes required for lactose metabolism.