To wander about aimlessly; to roam or drift without a clear purpose. Also used figuratively for being mentally unsettled or lost.
夜、彼は街をさまよっていたところを警官に見つかった。
At night he was found by a policeman while wandering the streets.
病気で意識がもうろうとして、心がさまよったような感覚があった。
Due to illness I felt faint and had a sense of my mind drifting.
故郷を離れてから彼は職を求めて各地をさまよった。
After leaving his hometown he wandered around different places looking for work.
情報がなくて、僕の考えはあちこちへさまよってしまった。
With no information, my thoughts wandered all over the place.