Both. But Monero mining is not especially decentralized.
Discussion
Not more decentralized than Bitcoin mining, that is.
Just learn about Monero.
The first difference is that normal people like you and me are mining it and make a reasonable return.
The second difference is having decentralized mining pools where you get daily payouts for keeping the network secure.
Try gupax by yourself.