In the Book of Job Satan seems to act as an arm of Jehovah, inflicting punishment on humanity.
However, he is portrayed as an eternal antagonist of the divine will and the embodiment of all things evil.