How to invest in share market through demat account

How to invest in the stock market via a Demat account?,