You can think of Bitcoin as digital cash, that isn't distributed by any central authority.
To get everyone to agree on a state, each transcation must be mathematically verified by each participant on the network. So as long as there is more honest participants than malicious ones n the network, the funds are kept intact.
The underlying technology behind Bitcoin is blockchain, which can be thought of as a slow database.