Domestic markets surrendered early gains to close in the red for the second straight session on Tuesday as sentiment remained risk-averse amid lacklustre corporate earnings and a deepening sell-off in Asian markets post-China's regulatory crackdown on tech companies.