Take a bar magnet and magnetise an iron needle with it.
Now, insert the magnetised needle in a small piece of cork. Take a glass of water and place the cork in the water.
The magnetised needle will orient itself in the north-south direction. Thus, our magnetic compass is ready.