Amaziah came home after he had defeated the Edomites. He brought back the idols they worshiped. And he started to worship them also. He bowed down to them and offered sacrifices to them.