A mechanical license is a legal agreement that allows an individual or entity to use a copyrighted musical composition for specific purposes, such as recording, distribution, or performance.