You can save capital gains tax by reinvesting your money from selling an asset into a residential house.
While you look for a house to buy or build, you can keep money in a special Capital Gains Account. If you dont utilize the money, you have to pay tax.
But the process of closing the account even when you are willing to pay tax needs AO approval & quite cumbersome. Withdrawals to buy an under construction house are also difficult.