What is demat account what is the use of it

What is the primary use and benefit of having a demat account?