Place butter in a small saucepan and set it over medium/low heat. As the butter begins to melt, add sliced garlic. Once the butter is completely melted, white foamy milk solids will rise to the top. Use a long handled spoon to skim off the milk solids and discard. Allow the butter to simmer and bubble gently until it is fragrant and a golden color, allowing garlic to infuse the ghee. Any additional milk solids will sink the to bottom of the pan.
Strain garlic infused ghee through a cheesecloth-lined fine mesh sieve, catching the sliced garlic and any solids from the pan. Be careful as the ghee will be very hot. Discard solids.
Allow ghee to sit undisturbed until completely cooled.