A group of pigs is called a sounder. This term is used to describe a group of wild pigs, such as wild boars, but can also apply to domesticated pigs when they are grouped together.
In addition to “sounder,” the term “herd” is sometimes used when referring to a group of domesticated pigs, especially in farming contexts. However, “sounder” is more commonly used to refer to the wild boar groups in the wild, while “herd” might be used in a more agricultural setting.
Pigs in a sounder often include adult females, their piglets, and sometimes younger males, who stay with the group for protection and social interaction.