Mince garlic cloves and Thai chili well. Cut lime into wedges.
In a large bowl, combine sugar, fish sauce, and water. Squeeze in lime juice. Stir well until dissolved. Then add minced garlic and minced Thai chili. Stir for a few times.
Place the dipping sauce into a cooler of the fridge. It can be stored for months.