In a large pot, combine 5 cups distilled white vinegar, 1 cup water, 2 cups sugar, and 2 teaspoons canning salt.
Bring the mixture to a boil and gently boil for 3 minutes.
Add 7 garlic cloves, 2 peeled and sliced carrots, and 1 peeled and sliced onion to the pot.
Simmer until the carrots are still crisp, about 10 minutes.
Place 1 teaspoon of panch phoron (Bengali five-spice) in the bottom of each clean, hot pint jar.
Pack the carrot mixture into sterilized 8-ounce jars, leaving 1/2 to 1-inch headspace.
Remove air bubbles, wipe the rim, and place lids and rings on the jars.
Place the jars in a hot water bath for 15 minutes (0-1,000 ft), 20 minutes (1,001-6,000 ft), or 25 minutes (above 6,000 ft).
Carefully remove the jars from the water and let them cool on a wooden cutting board or towel without touching or bumping them in a draft-free place.
Remove the rings, wipe the rims, and store the jars. The pickled carrots will taste better after a couple of days.