What is demat account in share market

How is a demat account used specifically within the share market context?