Both. Choose whole bean or ground when you pick your size.

Whole bean keeps its flavour and aroma longest if you grind it fresh just before brewing. Ground is ready to brew straight from the bag.