The excretory structure in earthworms is the nephridium. A nephridium is a tubular structure that is responsible for removing waste products from the body of an earthworm. It works similarly to a kidney in other organisms and helps to maintain the balance of water and other substances in the earthworm's body.