What is demat account in india

How do demat accounts function in the Indian financial system?