Social media works by allowing users to connect and share content online. Users create profiles and share updates, photos, videos, and opinions that their friends and followers can see. As more people engage with social media platforms, the shared content spreads more widely and forms online social networks.