An ad network is a platform that connects advertisers with publishers to display ads on websites, apps, or other digital spaces. It aggregates ad inventory from various sources and matches it with advertisers' campaigns, often using targeting options like demographics, interests, or behavior, to optimize ad delivery and performance.