This command is found in
Image>View/Snap to Guides.
This option in a way magnetizes the guides you have set (see
Show Guides).
When you move a layer or a selection, they will get automatically
onto the guides when they are near them. This allow to place them
acurately.