He also built places of worship where all his foreign wives could burn incense and offer sacrifices to their own gods.