When we read the Bible, we find a lot of encouraging things, but a lot of difficult things to go with it. Things that even believers struggle with, and so unbelievers love to object to them, calling God evil. Richard Dawkins sums up the argument as, "The God of the Old Testament is arguably the most unpleasant character in all fiction: jealous and proud of it; a petty, unjust, unforgiving control-freak; a vindictive, bloodthirsty ethnic cleanser; a misogynistic, homophobic, racist, infanticidal, genocidal, filicidal, pestilential, megalomaniacal, sadomasochistic, capriciously malevolent bully."
Now, Dawkins is a moral relativist. He even once said that the universe shows "no design, no purpose, no evil, no good, nothing but pitiless indifference." In other words, by Dawkins' own logic, even if God really was all those horrible things, Dawkins would have no more legitimate cause to say God is wrong than to say I am wrong for having different ice cream preferences to him.
Now, thankfully, the God of the Old Testament is not all of those things. But again, we can completely ignore that, because even in a world where moral absolutes exist, they have to come from somewhere. To whom is God accountable? Asking this question is similar to asking who made Him. Just as God is the source of all reality (i.e. the first cause), He is also the source of all morality (i.e. the first authority). Or, as God Himself says, "Who has preceded Me, that I should pay him? Everything under heaven is mine." (Job 41:11, emphasis mine).
So now let me ask you a question: Can you steal what is already yours? Of course not! Do you knock before you walk into your own house? Do you ask permission before you use your own computer? Who will punish you if you break your own mug? Your property is just that: your property. Your rights exceed any other person's.
Of course, there is a difference if you're just borrowing, or even renting it. When you rent a property, you are accountable for what happens to it. And of course, there are even laws as to what you do with your own property. You cannot, for example, hop in your car and do 100 mph in a 20 zone. You might be able to get away with speeding if you happen to own a race track, but outside of your own property, you are not permitted to use your car in just any way you want. The government "owns" public property, and so laws apply.
But God is accountable to no one. He isn't borrowing anything, He isn't renting anything, He isn't operating in a place He doesn't own. But we are. See, we only exist because He made us exist. The universe is His. The galaxy is His. The solar system, the planet, our country, every single atom in our reality belongs entirely to God. So really, we are borrowing even our own bodies. God doesn't owe us life. It is a gift which He willingly gives us. But there is a condition. A condition which, unfortunately, we have all broken. Every single one of us has misused what we are borrowing in some way or another. In other words, God is well within His rights to "evict" us. He can take back what's His any time He sees fit.
And that's where things become truly amazing. See, God can kill us in a heartbeat. Who's going to tell Him He's wrong? But He tells us most emphatically that this is not what He wants to do. Make no mistake, He will do it if it comes down to it, but His word tells us He doesn't want to. So He made a plan to save us long before we even needed saving. When God created the heavens and the earth, He knew mankind would mess it up, so He wrote a loophole into the law. Sin must be punished, but the sinner doesn't necessarily have to take the punishment themselves. It is an option He provides, but for those who don't like that option, there is an alternative. A worthy sacrifice can take the sinner's place.
But there's only one being who is worthy, and that just happens to be the most precious being in all eternity: God's own Son, Jesus. And yet, God did send Jesus to be crucified in our place. So now, we don't need to face the penalty for our own sin. God has the right to send us to Hell, but through faith in Jesus' resurrection, He grants us eternal life. One can hardly accuse God of murder when He paid such a high price to effectively buy us eternal life.