To prevent weeds in gravel or landscaping rock, you can apply a preemergent that keeps organic material from growing in a certain area. You can also choose to install edges between landscaping areas to keep plants, grass, and weeds from extending their roots into the rock areas.