What is the use of demat account in trading

How is a demat account used for active trading?,