Fill a cocktail shaker with ice. Add pineapple juice, lime juice, tequila, triple sec, and optionally, (for a sweeter drink) simple syrup. Shake until combined.
Optionally, salt the rim, and fill a lowball glass with ice. Pour margarita over ice and enjoy. immediately.