How to snap object

How to snap object
How to snap object

With the snap option enabled (little magnet icon on top of the viewport)
Or holding ctrl key (if snap option is disabled)