You can have an installment sale of your real estate to a related party to defer the gain, but the related party has to hold the property for at least two years. If the related party sells the property within the two year period, the gain you tried to defer is triggered and becomes taxable to you.  However, watch out for §1239 as applied by §267! 

Do you want to know more?