godan verb (-ku), intransitive verb
loiter; hang around; wander around; prowl; roam
Describes moving around a place without a clear purpose, often with a slightly negative nuance of being where one shouldn't be or making others uncomfortable.
夜中に公園をうろつくのは危ない。
It's dangerous to wander around the park in the middle of the night.
怪しい男が家の前をうろついていた。
A suspicious man was loitering in front of the house.