2 Kings 8:27

27 Since Ahaziah was related to King Ahab by marriage, he sinned against the Lord, just as Ahab's family did.

2 Kings 8:27 Meaning and Commentary

2 Kings 8:27

And he walked in the way of the house of Ahab, and did evil in
the sight of the Lord, as [did] the house of Ahab
Worshipping the calves, and Baal also:

for he was the son in law of the house of Ahab;
he was the son of Jehoram, who was son-in-law to Ahab, having married his daughter, which accounts for his being guilty of the same idolatrous practices.

2 Kings 8:27 In-Context

25 In the twelfth year of the reign of Joram son of Ahab as king of Israel, Ahaziah son of Jehoram became king of Judah
26 at the age of twenty-two, and he ruled in Jerusalem for one year. His mother was Athaliah, the daughter of King Ahab and granddaughter of King Omri of Israel.
27 Since Ahaziah was related to King Ahab by marriage, he sinned against the Lord, just as Ahab's family did.
28 King Ahaziah joined King Joram of Israel in a war against King Hazael of Syria. The armies clashed at Ramoth in Gilead, and Joram was wounded in battle.
29 He returned to the city of Jezreel to recover from his wounds, and Ahaziah went there to visit him.
Scripture taken from the Good News Translation - Second Edition, Copyright 1992 by American Bible Society. Used by Permission.