All wood will rot if left in contact with the ground. Cedar is the most weather-resistant wood. Pressure-treated wood is a good choice if you live in an area that has a lot of termites.