Malpighian tubules are outpocketings of the digestive tract that are immersed in hemolymph (circulatory fluid).
The tubules secrete nitrogenous wastes in the form of nearly dry uric acid, which is excreted with feces.