What is the role of an Institutional Review Board (IRB)? How does an IRB protect the rights of human subjects participating in research?

What is the role of an Institutional Review Board (IRB)? How does an IRB protect the rights of human subjects participating in research?