To loiter or hang around aimlessly, often with a slightly suspicious nuance; to wander about.
深夜に若者がコンビニの前をうろついている。
Young people are loitering in front of the convenience store late at night.
猫が路地をうろついて食べ物を探している。
A cat is prowling the alley looking for food.
不審者が住宅街をうろついていると通報があった。
There was a report that a suspicious person was loitering in the residential area.