If interest rates rise, so will the YTM of the bond. When the YTM increases:
The cash flows generated are discounted more heavily; and
Hence the bond price will go down.
Similarly, when interest rates decrease, and the YTM decrease, the bond price will increase. Read more