Combine tequila and habanero pepper in an airtight container. Allow the tequila to infuse for at least 3 to 5 hours.
To make the margarita, rim a glass with salt and fill with ice. In a shaker filled with ice, combine habanero tequila, lime juice, triple sec and agave. Shake vigorously. Strain into the glass and serve.