Gin is flavored with juniper berries . Gin is a spirit whose predominant flavor is derived from juniper berries ( Juniperus communis ) . Although several different styles of gin have existed since its origins , gin is broadly differentiated into two basic legal categories .