What are the Basic rules regarding Deferring Capital Gains with an Exchange?

What are the Basic rules regarding Deferring Capital Gains with an Exchange?