How to use demat account to buy shares

What are the key steps to use a Demat account for share purchases?,