A lien from the IRS doesn't always automatically expire after 10 years.
But there is a statue of limitations that prohibits the IRS from being able to forcefully collect any taxes owed or putting a lien on your property or assets after 10 years have passed.