Combine the water and piloncillo or brown sugar and stir to dissolve the sugar.
Cut the crown off of the pineapple and discard. Wash the outside of the pineapple. Cut a slice off the bottom and top of the pineapple. Slice the skin off in long strips.
Place the skin pieces and core into a container with the sugar water. Cut the fruit of the pineapple and save for another use. Add the cloves and cinnamon stick.
Cover with a kitchen towel and set it in your kitchen at room temperature. After 24 - 36 hours, check your tepache. If you see white foam, it’s fermenting. The time for fermentation will depend on the temperature of your kitchen.
At this point, strain all the solids, transfer to a pitcher and refrigerate. Taste, and add more water or sugar to desired level of sweetness.