An antagonist is a character, group of characters, institution or concept that stands in or represents opposition against which the protagonist(s) must contend. In other words, an antagonist is a person or a group of people who opposes a protagonist.
Most often from mutual dislike or personality clash
True you can identify the purpose from the author’s perspective