What is demat and trading account

What is the relationship between demat and trading accounts in share markets?

A demat account stores securities electronically; a trading account executes trades. Linked together, they replace physical share certificates and simplify investing.,