The number identifying a network that routes its own block of IP addresses on the internet, such as an ISP, cloud host or large company.
The internet is made of tens of thousands of autonomous systems, each announcing which IP ranges it can deliver traffic to. Looking up the ASN behind an IP address tells you which organisation runs that network, which is usually more reliable than a geolocation database.
In practice an ASN answers questions like 'is this a home broadband line, a mobile network, a VPN provider or a cloud server?'. Infrastructure that sits in the same small hosting ASN as known malicious servers is a lead, not a conclusion.