Jamie Bonnor Thomson, 19, was charged with culpable and reckless conduct.
It came after 10 teenagers fell ill after consuming what police described as a pink-coloured tablet. They were all treated in hospital and discharged.
Mr Thomson made no plea or declaration at Jedburgh Sheriff Court and the case was continued for further examination.
He was remanded in custody by Sheriff Peter Paterson.
He is expected to appear in court again within eight days.
A Hawick teenager has appeared in court following an incident which allegedly left 10 young men in hospital after taking an unidentified substance.