Homebrewing is the brewing of beer on a small scale for personal, non-commercial purposes. Beer has been brewed on the domestic level since its advent, thousands of years prior to its commercial production. Through the years its legality has varied according to local regulation.