If you sell urban agricultural land that later becomes non-agricultural, you generally cannot claim an exemption from capital gains tax, even if you reinvest the money into new agricultural land. Profits from urban agricultural land are considered capital gains and are taxable. However, land classified as agricultural in a rural area is typically exempt. It's advisable to consult a tax professional for clarification on your specific circumstances.