theres a couple of ways to clean water, but I prefer reverse osmosis https://espwaterproducts.com/pages/understanding-ro#:~:text=Reverse%20Osmosis%20(RO)%20is%20a,leaving%20clean%2C%20delicious%20drinking%20water.
Discussion
That's the quick, easy and high-tech way :)
There's a lot of low-tech ways to actively clear muddy water in a pinch, I read some chapters on it in this book - https://archive.org/details/engineeringineme0000davi
Its only we middle-class Westerners who don't know, by the look of things...