What is demat allocation

Why is demat allocation required and how is it managed?,