The primary role of male lions within a pride is to protect the territory, females, and offspring from external threats such as other males trying to take over the pride. They also play a role in defending the pride during hunting activities and mating with the lionesses to ensure the continuation of the pride's lineage.