But these various groups of foreigners also continued to worship their own gods. In town after town where they lived, they placed their idols at the pagan shrines that the people of Samaria had built.