“Without this character’s actions, the story wouldn’t happen. Therefore, they are the main character.”

Antagonist. The character you’re describing is the antagonist.