What is a demat account how it works

Could you explain what a Demat account is and how it works?,

A demat account is an account that holds your securities electronically and allows you to buy, sell, and manage them easily.