Homebrewing is the brewing of beer or other alcoholic beverages on a small scale for personal, non-commercial purposes. Supplies, such as kits and fermentation tanks, can be purchased locally at specialty stores or online. Beer was brewed domestically for thousands of years before its commercial production although its legality has varied according to local regulation. Homebrewing is closely related to the hobby of home distillation, the production of alcoholic spirits for personal consumption, but home distillation is generally more tightly regulated.