Polyatomic ions are ions that consist of two or more atoms bonded together, carrying a net charge due to the loss or gain of electrons. These ions can be positively charged (cations) or negatively charged (anions), and they play a crucial role in the formation of various compounds, particularly in ionic bonding where they combine with other ions to form stable structures.