What is the role of SEBI in the stock market?

What regulatory functions does SEBI perform in overseeing and regulating the Indian stock market?,