Buy fresh garlic and peel off the old skin, which can be sliced (mainly to save more space when canning) or whole, washed with water and dried.
Prepare a sealed jar or glass bottle or jar, put garlic in it, add cold water (cold boiled water, tap water or mineral water), add a little salt, then put sugar on the top layer and seal it. Usually you can eat it in a week or two.