On his return march, he found that the Judeans had selected Jehoahaz to succeed his father Josiah. Necho brought Jehoahaz to Riblah and imprisoned him there. He then deposed Jehoahaz and replaced with his older brother Eliakim as king, changing his name to Jehoiakim.