Former Earlston High School teacher in court on sex charge
Ryan McInally, 29, of Monikie in Angus, is alleged to have committed the offence at a house in the Borders during December and January.
He made no plea or declaration at Selkirk Sheriff Court and the case was continued.
He was released on bail by Sheriff Peter Paterson.
When the allegations first came to light earlier this year he was suspended from his duties as a Modern Studies teacher at Earlston High in Berwickshire.
It is understood he no longer works at the school.