The goalkeeper's primary role is to prevent the opposing team from scoring by saving shots on goal and organizing the defense.