Cut top and bottom off onion and slice from root to end. Separate into two 16 oz mason jars along with peppercorns and garlic cloves.
Boil water, vinegar, sugar & salt. Whisk until everything is dissolved. Pour this liquid into the mason jars until everything is fully submerged.
Place in the fridge for minimum 1 hr or overnight.
