How Does Capital Gains Tax Work On Second Property?

How do I avoid capital gains tax on a second home?

.