Nitre beds have been used for years to make potassium nitrate, they consist of manure, ash and urine. They stacked the "ingredients" on a bed of clay then left it till it formed a white crust, this was then removed and washed with water, this got rid of the other soluble products. They used then potassium nitrate to make gunpowder.