Fish use kidney excret. The function of the kidney is osmoregulation. In freshwater fish, the kidney saves ions and excretes water. In saltwater fish, the kidney excretes ions and conserves water. The majority of nitrogenous waste is excreted through the gills.