Why demat

What is the main purpose of opening a Demat account?,