Bible
Why did God kill the firstborn children in Egypt?
Exodus presents the tenth plague as God's final judgment on Pharaoh and Egypt after Pharaoh repeatedly refused to free the enslaved Israelites, even after nine earlier warnings.
The text frames it as more than random punishment: Egypt's kings were widely believed to be divine, and the plague is described as executing "judgments against all the gods of Egypt" (Exodus 12:12)—a direct challenge to Egypt's entire system, not arbitrary cruelty. It's also worth remembering Pharaoh himself had earlier ordered the killing of Hebrew baby boys (Exodus 1:22)—this plague doesn't come out of nowhere.
Crucially, protection was available to any household, Egyptian or Israelite, willing to follow God's instructions and mark their door with blood (Exodus 12:13). This remains one of Scripture's most morally difficult passages, and honest Christians keep wrestling with it rather than explaining it away.
Bible quotations in these answers are generally taken from the Christian Standard Bible®, Copyright © 2017 by Holman Bible Publishers. Used by permission. Christian Standard Bible® and CSB® are federally registered trademarks of Holman Bible Publishers. Some biblical wording may be paraphrased or follow other translations.