He banished the male and female shrine prostitutes from the land and got rid of all the idols his ancestors had made.