What are malpighian tubules ? What is it function?

tubules that lies more or less in the haemocoel, which open into alimentary canal.
Functions:
(a) They absorb nitrogenous waste products.
(b) They convert the nitrogenous waste products into
uric add which is excreted out.