The Classic Inca Trail to Machu Picchu is limited to 500 permits per day, and that figure includes guides and porters — so roughly 200 trekker places are available each day. The limit, managed by the Peruvian Ministry of Culture, protects the trail and the Inca ruins along it from overuse.
Permits can only be obtained through a licensed operator; independent trekking is not permitted. They are tied to your passport and are non-transferable. The trail closes entirely every February for maintenance and conservation.
For the May–September high season, permits routinely sell out months in advance — often by January for the most popular dates. Book 4–6 months ahead through a licensed operator. If permits are sold out for your dates, the Salkantay and Lares treks are the standard permit-free alternatives that still finish at Machu Picchu.
The permit system is the single most important logistical fact about the Inca Trail. Build your Peru trip around permit availability, not the other way around.
Source: Peruvian Ministry of Culture (Dirección Desconcentrada de Cultura de Cusco)
Morocco Hiking Tours — A permit-free, guide-included alternative for a 4,000 m+ trek.