It's a cryptographic key exchange system that allows nodes to open Wireguard tunnels between each other. They have a nice product, but I don't like how it spies on your “private” network by default:
https://tailscale.com/kb/1011/log-mesh-trafficIf you want to self-host, use NetBird instead.