Zerodha is a depository participant of CDSL depository. This means it works as a service agent for demat account which is held by CDSL, one of the two central depositories.