The primary objective of market segmentation

What is the primary objective of market segmentation and how is it conducted by a firm? Write two short paragraphs and explain in as much detail as possible.