To avoid capital gains tax on the sale of urban agricultural land, consider reinvesting in another agricultural land within two years or specified assets. Exemptions under Sections 54B and 54F can apply if conditions are met, including the use of a Capital Gains Account