Most insects use ovipositors (specialized abdominal appendages) to lay eggs. Their morphology varies extensively based on where and how these eggs are laid: some precisely slice into plants and insert them one by one, others deposit them in sticky piles on top of a surface, and others might deposit them on the end of long stalks -- anything is possible in the insect world!
My master's thesis focused on the ovipositor diversity of Hemiptera, a group which uses piercing-sucking mouthparts to feed on liquid from plants and other organisms. This gives them a unique close relationship with the environment they use for food and egg-laying.