The primary purpose of hops in beer is to add bitterness. This bitterness helps to balance the sweetness of the malt. Hops also contribute to the flavor and aroma of beer.