How is DAI stable?

In order for something to be decentralized, it needs to to exist on its own without central control. Usually when a cryptocurrency pegged to USD, it involves trust. Whoever created the coin must hold an equal amount of dollars to its circulating supply. MakerDAO created a formula that can run on its own, hosting a