The AirTag sends out a secure Bluetooth signal that devices nearby the network can detect. These devices send the location of your AirTag to iCloud, where you can view it on a map.
The entire process is anonymous and encrypted to protect your privacy. Shop for a one-pack at $29 or a four-pack at $99 here.