Inherited from Old Czech pohan, from late Common Slavic, borrowed from Medieval Latin paganus.
pohan m anim