Wash a jar. Pour 1 tbsp salt and 1 tbsp sugar at the bottom.
Chop the onions into round slices ahead of time. Clean the garlic cloves. Put water to boil in a pot on the stove.
Squeeze in garlic cloves and put bunches of dill.
Once the water comes to a boil, pour it into the jar. Close with a cap. I used the wider types of jars. Flip them over with the caps down.