David Reid is charged with malicious mischief by damaging property belonging to another at a house in Ettrickbridge and threatening or abusive behaviour.
Emergency services were called out to the village on Thursday evening.
Reid, of no fixed abode, made no plea at Jedburgh Sheriff Court and the case was continued for further examination.
He was remanded in custody by Sheriff Peter Paterson.
A 39-year-old man has appeared in court in connection with an incident last week when a Borders village was sealed off by police.