Onomatopoeia captures and mimics sounds by utilizing words that phonetically resemble the actual sound being described. By using words that imitate the sounds they represent, onomatopoeia allows readers to mentally visualize or audibly imagine the depicted sounds. This enhance the overall sensory experience in literature.