Caddisflies, sedge-flies or rail flies (Order Trichoptera, from Greek trich, "hair", and ptera, "wings") are small moth-like insects having two pairs of hairy membranous wings. They are closely related to Lepidoptera.