Choose a location in your garden that receives six to eight hours of full sunlight per day. Rosemary grows best in such sunny conditions.
Till the soil in your area and mix in organic material, such as compost or peat. This organic material will improve drainage and help prevent the rosemary from suffering from overwatering, which can lead rot and disease. The amount of organic material you need will vary depending on the size of your garden plot.
Dig a hole in your newly tilled soil that is big enough to accommodate the rosemary’s roots. The hole should be the same depth as the soil in the rosemary’s container; you want the plant to sit on the same level as it is in the pot.
Insert the rosemary into the hole, spreading the roots gently so as not to damage them. Check to make sure the rosemary sits at the same soil line as it did in the container.
Fill in the hole, gently tamping the soil as you go to remove any air pockets.
Water the ground thoroughly, so that the top 8 to 10 inches of soil is damp. This deep initial watering will encourage the roots to spread out in their new home.